Message over network windows 7. How to send a message to all computers in the local network? MSG command - send message to user

Note

If the firewall is not disabled, then the program Nassi should be included in its exceptions.

Net send text message command

Text messages by local network can be sent not only to special programs(Radmin, Nassi) but also from the command line Windows xp. Team net send used to send text messages to another computer available on the network. However, in order to team worked, you must first enable the message delivery service. To do this, go to Control Panel. Open folder Administration, Services. Find the messaging service in the list (Fig. 20.9).

Rice. 20.9.

Open its properties. Select meaning Auto from the list launch type, if you want the service to automatically start on boot Windows. Then click on the button Start and OK(fig. 20.10 and fig. 20.11).

Rice. 20.10.

Rice. 20.11.

Let's look at some examples of how to use the command net send when sending messages in workgroup (domain) 110. To send a message to all users in workgroup 110, enter: net send /domain:110 PING. Another variation of a similar command: to send a message to all users in your domain, type: net send * ping(fig. 20.12 and 13)



Rice. 20.12.

Rice. 20.13.

To send a message to a specific user, such as 110-1, type: net send 110-1 HELLO!(Fig. 20.14).

Rice. 20.14.

AT Windows XP has another option for sending messages over the network. Execute commands Control Panel-Administrative Tools-Computer Management. Farther: Action-All Tasks-Send Console Message. Next, select a PC and send a text to it (Fig. 20.15).


Existed in Windows 2000/XP and was intended for messaging between users logged in locally and users of terminal sessions (connected to a remote desktop). In Windows Vista and later operating systems of the Windows family, the MSG command has become the main standard means messaging because the command net send is no longer supported in these OSes.

Command line format:

MSG (<пользователь> | <имя сеанса> | | @<имя файла> | *} [<сообщение>]

Description of command line options:

<пользователь> Username. <имя сеанса> Session name. Session ID. @<имя файла> A file containing a list of usernames, sessions, or session IDs to which a message is sent. * Send a message to all sessions on the specified server. /SERVER:<сервер> Server (default - current). /TIME:<секунд> The interval for waiting for confirmation from the recipient. /V Display information about completed actions. /W Waiting for a response from the user, useful with /V. <сообщение> The message being sent. If not specified, a prompt is issued or input is taken from STDIN.

Important!

The current implementation of msg.exe is fine for exchanging messages between local and terminal user sessions within the same system, however, in cases of exchanging between different computers on a local network, you will need to change some of the default security settings in Windows Vista, 7 and 8 operating systems .

Usually, with default settings, sending a message to remote computer, is not executed and is accompanied by the message

Error 1722 when getting session names

This means that it is not possible to obtain information about logged-in users on the computer where the message being sent is to be received. The reason may be that the firewall is blocking incoming connections, there are insufficient user rights in relation to the remote system, the prohibition of remote procedure calls in the Terminal Server service settings. At a minimum, for messaging using the command msg between computers, you must have a user account that is valid with respect to the remote system and make the following settings:

  • on each computer to which messages will be sent, add to the registry key HKEY_LOCAL_MACHINE\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, 10Technical Preview registry key AllowRemoteRPC exists, but has a value equal to 0 which needs to be corrected. A reboot is required to apply the changes.

  • because the messaging utility msg.exe uses the SMB (Server Message Block) protocol, on each computer to which messages will be sent, a TCP port must be open 445

    Examples of using MSG:

    msg * /server:Server "Test message"- send a test message to all computer users server

    msg * /server:192.168.0.1 "Test message"- send a test message to all users of a computer with an IP address 192.168.0.1

    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 console /server:Windows7 "Test message"- send a test message to the current local computer user Windows7

    msg console "Test message"- send test message from RDP session user to local user. If this command is executed by a non-terminal session user, the message will be sent by the local user to itself.

    To execute a command msg on behalf of another user, you can use the utility PSExec from the package PSTools or standard tool runas.exe

    psexec -u otheruser -p otherpass msg * /server:win10 TEST message

    runas /user:otheruser "msg * /server:win10 Test message"

    Messages sent by the team msg local computer user operating system Windows XP that is missing (not yet logged into Windows) is displayed in a window with an invitation to register in the system and can be accessed by outsiders.

  • Check if the system supports the msg command. The functionality of this command is in many respects similar to the functionality of the unused net commands send . But this command only works in professional and enterprise versions of Windows. If you're on Windows Home, upgrade to Professional or Enterprise to use the msg command.

    • For Windows version, click ⊞Win+Pause or right-click on "Computer" and select "Properties". The Windows version will appear under Windows Edition.

    open command line. Like net send , the msg command is run from the command line. The command prompt is launched in different ways (depending on the version of Windows), or just press ⊞ Win and type cmd.

    • Windows Vista/7: Open Command Prompt from the Start Menu.
    • Windows 8.1/10: Right-click the Start button and select Command Prompt.
    • Windows 8: Click ⊞ Win+X and select Command Prompt.
  • Enter a command. Type msg and press Space. Next, you need to enter information that contains the text and direction of the message.

  • Specify the recipient of the message. Compared to net send , the msg command has additional options.

    • msg username - enter the name of a specific user.
    • msg session - enter the name of a specific session.
    • msg session ID - Enter the ID of a specific session.
    • msg @ filename - Enter the name of a file that contains a list of usernames, sessions, and/or session IDs. Useful for sending messages to department employees.
    • msg * - the message will be sent to all users who are connected to the server.
  • Specify the server whose users you want to send the message to (if you want). If you want to send a message to a user who is connected to another server, enter the server information after the recipient information. If no server is specified, the message will be sent to the current server.

    • msg * /server: server name
  • Set a time limit (if you want). You can set a time limit to specify the interval to wait for confirmation from the recipient. The temporary modifier is entered after the server information (if any).

    • msg * /time: seconds (e.g. 300 seconds for a five minute interval)
  • Enter your message text. After entering the various options, enter the message text. Or click ↵Enter, and the system prompts you to enter the text of the message on a separate line.

    • For example: msg @salesteam /server:EASTBRANCH /time:600 Congratulations on the increase in sales this quarter!
  • Send a message. To do this, click ↵Enter. The recipient will receive it immediately.

    • The msg command is designed to send messages to terminal users, not just different computers connected to the same network.
  • Troubleshoot. When working with msg, you may encounter the following errors:

    • "msg" is not recognized as an internal or external command, operable program or batch file. (msg is not recognized as an internal or external command, operable program, or batch file). In this case Windows version does not support msg . Upgrade Windows to Professional edition.
    • Error 5 getting session names or Error 1825 getting session names. An error occurred while communicating with the recipient. You can try to fix this problem by opening the registry editor on the recipient's computer (to do this, run the regedit command), go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server and change the value of the "AllowRemoteRPC" parameter from 0 to 1.
  • mob_info