How to send a message to all computers on the local network? Command for sending text messages Net send How to send a message to another computer via the command line
Command MSG existed in Windows 2000 / XP and was intended for the exchange of messages between users logged in locally and users of terminal sessions (connected to a remote desktop). In Windows Vista and later Windows operating systems, the MSG command has become the primary standard messaging tool because the command net send is no longer supported in these OS.
Command line format:
MSG (user | session name | session ID | @ filename | *) [message]
Description of command line parameters:
user- Username.
session name- Session name.
Session ID- Session ID.
@File name- A file containing a list of usernames, sessions, or session IDs to which the message is sent.
* - Send a message to all sessions on the specified server.
/ SERVER: server- Server (default - current).
/ TIME: seconds- The interval of waiting for confirmation from the recipient.
/ V- Displays information about the actions performed.
/ W- Waiting for a response from the user, useful in conjunction with / V.
message- The message to be sent. If not specified, prompts or accepts input from STDIN.
Important!
The current implementation of msg.exe is perfect for exchanging messages between sessions of local and terminal users within the same system, however, in cases of exchange between different computers on the local network, you will need to change some of the default security settings in Windows Vista, 7 and more. late.
With the standard settings, the message is not sent to users of remote computers and is accompanied by the message:
Error 1722 while getting session names
This means that it is impossible to obtain information about the logged in users on the computer where the message is to be sent. This could be because the firewall is blocking incoming connections, the user has insufficient rights to the remote system, or RPC is not allowed in the Terminal Server settings. At least for messaging using the command msg between computers, you must have a user account valid for the remote system and perform the following settings:
- on each computer to which messages will be sent, add to the registry key HKLM \ SYSTEM \ CurrentControlSet \ Control \ Terminal Server parameter AllowRemoteRPC type REG_DWORD and equal 1 To change the settings, you can use the .reg file with the following content:
- Windows Registry Editor Version 5.00
"AllowRemoteRPC" = dword: 00000001 - In Windows Vista, Windows 7, 8, 10 registry key AllowRemoteRPC exists but has a value equal to 0 what needs to be fixed. A reboot is required to apply the changes.
- since the messaging utility msg.exe uses the SMB (Server Message Block) protocol, a TCP port must be open on each computer to which messages will be sent 445
- Examples of using MSG:
- msg * /server:192.168.0.1 "Test message"- send a test message to all computer users with an IP address 192.168.0.1msg console / server: Windows7 "Test message"- send a test message to the current local computer user Windows7To execute the command msg on behalf of another user, you can use the utility PSExec from the package PSTools or regular means runas.exerunas / user: otheruser "msg * / server: win10 Test message"
Note
If the firewall is not turned off, then the program Nassi should be included in its exceptions.Text messages over the local network can be sent not only in special programs (Radmin, Nassi), but also from the command line Windows XP. Command Net send serves to send text messages to another computer on the network. However, in order to command worked, you must first enable the message delivery service. To do this, go to Control Panel... Open the folder Administration, Services... Find the messaging service in the list (fig. 20.9).Open its properties. Please select meaning Auto from the list Startup type, if you want the service to start automatically at boot Windows... Then click on the button Start and OK(fig.20.10 and fig.20.11). - Rice. 20.9.
- Net send text message command
- Messages sent by the team msg a local user of a computer with the operating system Windows XP, which is absent (has not yet entered Windows) are displayed in a window with an invitation to log on to the system and can be accessed by unauthorized persons.
- psexec -u otheruser -p otherpass msg * / server: win10 TEST message
- msg console "Test message"- sending a test message from the user of the RDP session to the local user. If this command is executed by a non-terminal user, then the message will be sent by the local user to himself.
- msg RDP-Tcp # 0 / server: TSServer "Test message"- send a test message to the user of the terminal session with the name RDP-Tcp # 0 on the computer TSServer
- msg * / server: Server "Test message"- send a test message to all computer users Server
출처: https://appcube.ru/en/kak-otpravit-soobshchenie-na-vse-kompyutery-v-lokalnoi-seti-komanda.html
'컴퓨터 활용(한글, 오피스 등) > 50_1. 운영체제_윈도우' 카테고리의 다른 글
C# Crystal Report 예제(편집, 인쇄) (0) | 2024.03.29 |
---|---|
파이썬으로 여러 엑셀파일의 데이터 읽어 들이기/pandas[출처] 파이썬으로 여러 엑셀파일의 데이터 읽어 들이기/pandas|작성자 장삼 (0) | 2024.03.27 |
rust install (0) | 2024.03.10 |
windows power shell alias 설정하기 (0) | 2024.03.08 |
Microsoft Excel 프로그램에서 ODBC Data Source를 이용하여 Oracle 데이터베이스로부터 Excel Sheet 로 가져오기 위한 설정 (1) | 2024.03.07 |