MSG command – send a message to the user. Net send text message command How to send messages over a local network

Check if your system supports the msg command. The functionality of this command is much the same as the unused net send command. But this team only works in professional and corporate Windows versions. If you're using Windows Home, upgrade to Professional or Enterprise to be able to use the msg command.

  • To find out your Windows version, click ⊞ Win + Pause or right-click Computer and select Properties. The Windows version will appear under Windows Edition.

Open a command prompt. Like net send, the msg command is run from command line. Command line starts different ways(depending on your Windows version), or just click ⊞Win and enter 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 the command. Type msg and press Space. Next, you need to enter information that contains the text and direction of the message.

  • Identify 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 the specific session.
    • msg Session ID – Enter the specific session ID.
    • 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 connected to the server.
  • Specify the server whose users you want to send the message to (if you wish). 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 wish). You can set a time limit to specify how long to wait for confirmation from the recipient. The time modifier is entered after the server information (if any).

    • msg * /time: seconds (for example, 300 seconds for a five-minute interval)
  • Enter your message text. After entering the various parameters, enter your message text. Or click ↵Enter, and the system will prompt you to enter the text of the message in a separate line.

    • For example: msg @salesteam /server:EASTBRANCH /time:600 Congratulations on increasing your 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 to 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, executable program or batch file). In this case, the Windows version does not support msg . Upgrade Windows to Professional version.
    • Error 5 getting session names or Error 1825 getting session names. Error when communicating with the recipient. You can try to resolve this problem by opening the registry editor on the recipient computer (to do this, run the regedit command), going to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server and changing the AllowRemoteRPC setting from 0 to 1.
  • Team MSG net send

    Command line format:

    user- Username.
    session name— Session name.
    Session ID— Session ID.
    @file name
    *
    /SERVER:server
    /TIME:seconds
    /V
    /W
    message

    Important!

    msg

    Parameter AllowRemoteRPC type REG_DWORD and equal 1

    AllowRemoteRPC 0

    msg.exe 445

    Examples of using MSG:

    Server

    192.168.0.1

    TSServer

    Windows7

    To execute a command msg PSExec from the package PSTools or standard means runas.exe

    msg

    MSG command – send a message to the user.

    Team MSG existed back in Windows 2000/XP and was intended for exchanging messages between users logged in locally and users of terminal sessions (connected to a remote desktop). In Windows Vista and later family operating systems Windows command MSG has become mainstream standard means messaging because the team net send This OS is no longer supported.

    Command line format:

    MSG (user | session name | session ID | @filename | *)

    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— Waiting interval for confirmation from the recipient.
    /V— Display information about completed actions.
    /W— Waiting for a response from the user, useful together with /V.
    message— The message being sent. If not specified, a prompt is issued or input from STDIN is accepted.

    How to send a message to all computers on a local network?

    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 local network, you will need to change some default security settings in Windows Vista, 7 and later operating systems.

    At standard settings, sending a message to users remote computers fails and is accompanied by the message:

    Error 1722 when retrieving session names

    This means that the computer where the message is to be received cannot obtain information about the logged-in users. The reason may be that the firewall is blocking incoming connections, the user's rights in relation to the remote system are insufficient, or remote procedure calls are prohibited in the terminal server service parameters. At a minimum, for messaging using the command msg between computers, you must have account user, valid in relation to the remote system and execute 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 the same value 0 what needs to be fixed. A reboot is required for changes to take effect.

    Because the messaging utility msg.exe uses SMB protocol(Server Message Block), each computer to which messages will be sent must have an open TCP port 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 a terminal session user named RDP-Tcp#0 on the computer TSServer

    msg console /server:Windows7 "Test message"— send a test message to the current local user computer Windows7

    msg console "Test message"- sending a test message from the session user RDP to local to the user. If this command is not executed by a terminal session user, then the message will be sent by the local user to himself.

    To execute a command msg You can use the utility on behalf of another user PSExec from the package PSTools or standard means 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 user of a computer with an operating system Windows system XP, which is missing (not yet included in Windows) are displayed in the window prompting you to register on the system and may be accessible to outsiders.

    Full list of CMD Windows commands

    MSG command – send a message to the user.

    Team MSG existed back in Windows 2000/XP and was intended for exchanging messages between users logged in locally and users of terminal sessions (connected to a remote desktop). On Windows Vista and later operating systems Windows family The MSG command has become the main standard messaging tool since the command net send This OS is no longer supported.

    Command line format:

    MSG (user | session name | session ID | @filename | *)

    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— Waiting interval for confirmation from the recipient.
    /V— Display information about completed actions.
    /W— Waiting for a response from the user, useful together with /V.
    message— The message being sent. If not specified, a prompt is issued or input from STDIN is accepted.

    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 default security settings in Windows Vista, 7 and later operating systems later

    With standard settings, messages are not sent to users of remote computers and are accompanied by the following message:

    Error 1722 when retrieving session names

    This means that the computer where the message is to be received cannot obtain information about the logged-in users. The reason may be that the firewall is blocking incoming connections, the user's rights in relation to the remote system are insufficient, or remote procedure calls are prohibited in the terminal server service parameters.

    Sending a message via the command line to another computer

    At a minimum, for messaging using the command msg between computers, you must have a user account valid for the remote system and make 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 the same value 0 what needs to be fixed. A reboot is required for changes to take effect.

    Because 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: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 a terminal session user named 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"— sending a test message from an RDP session user to a local user. If this command is not executed by a terminal session user, then the message will be sent by the local user to himself.

    To execute a command msg You can use the utility on behalf of another user PSExec from the package PSTools or standard means 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 user of the computer with operating system Windows XP that is missing (not yet logged into Windows) are displayed in the login prompt and may be accessible to others.

    Full list of CMD Windows commands

    net send command reference

    1. General information about the net send command
    2. Using the net send command
    3. Net send command syntax
    4. Notes on using the net send command
    5. Examples of using the net send command
    6. Enabling and disabling the messaging service and net send
    7. How to send net send messages in Windows 7

    Understanding the net send command

    Net send is a console application included with some versions of Windows and designed to send messages over a local network to another user, computer, or alias. The command is only available on Windows NT, 2000, XP, 2003 and is not available on Windows 7, Vista, ME, 98, 95 and older. In Windows XP, starting with Service Pack 2, the net send command is disabled by default.

    Using the net send command

    The net send service must be running for the net send program to work. Windows messages. In fact, the net send command is just a command line interface to the messaging service, which directly deals with sending and receiving messages. To be able to receive messages, the computer to which the message is sent must also be running Messenger Service or another program that uses the same messaging protocol. The message can only be sent to an active entity on the network. If a message is sent to a user, they must be logged in using their username.

    To send messages using the net send command, launch a command interpreter (command line). To start the command interpreter, select Run from the Start menu, type cmd, and click OK. Use the net command with the send parameter and other parameters in accordance with the command syntax. The messaging service displays received messages in a standard Windows message dialog box.

    net send command syntax

    The net send command has the following syntax:

    net send (username | * | /domain | /users) message

    username— user name, computer name or nickname to whom you want to send a message;

    * — sending messages to all members of a domain or workgroup;

    /domain— sending a message to all names in the computer domain or in the domainname domain;

    /users— sending a message to all users connected to the server;

    message- Message text.

    Notes on using the net send command

    If command parameter arguments contain spaces, they must be enclosed in quotation marks.

    It may be difficult to use long message recipient names. Names used by the messaging service are up to 15 characters long.

    Limit length broadcast messages is 128 characters. The maximum length of personal messages is 1600 characters.

    Examples of using the net send command

    To send the message “You can send a message over a local network using the net send command” to the user ivanov, enter:

    net send ivanov You can send a message over a local network using the net send command

    To send a message to everyone connected to the computer from which the message is being sent, type:

    net send /users Everyone immediately exit 1C!

    To send a message to all users in the ukmz domain, enter:

    net send /domain:ukmz Electricity in the building will be turned off in 5 minutes

    To send a message to all users in the domain of the computer from which the message is sent, type:

    net send * Gentlemen, meeting at general director will take place at 13:00

    Enabling or disabling messaging and net send

    Enabling and disabling the messaging service is possible using both the MMC console (Services snap-in) and using the command line.

    To perform these operations, you must have administrator rights.

    To enable the messaging service using the MMC console, follow these steps: Go to Control Panel. Open the Administration, Services folder. Find "Messenger" in the list. Open the service properties window. Select 'Auto' from the 'Startup Type' list if you want the service to start automatically when booting Windows. Then click the Start button. Click OK.

    To disable the messaging service, follow these steps: Go to the Control Panel. Open the Administration, Services folder. Find "Messenger" in the list. Open the service properties window. Select 'Manual' from the 'Startup Type' list. Then click the Stop button. Click OK.

    To enable messaging from the command line, enter the following commands in a shell:

    sc config messenger start=auto
    net start messenger

    To disable the messaging service from the command line, enter the following commands in a shell:

    net stop messenger
    sc config messenger start= disabled

    How to send net send messages in Windows 7

    To send net send messages in those versions of Windows where this command is missing (Windows 7, Vista, ME, 95, 98), you can use a third-party software.

    Sending messages using msg.exe

    We suggest you use two programs: WinSent Messenger and the Sent utility. WinSent Messenger is a messenger for local networks, compatible with net send. The Sent utility is designed to send messages from the command line. More detailed information available on the pages of these software products:

    WinSent Messenger - instant messenger for local network

    Sent is a utility for sending net send messages from the command line in Windows 7/Vista.

    Does your company have difficulty communicating within the team? Tired of calling every colleague to a meeting? Tired of walking all over the office to solve the simplest issue? If you answered “yes” to at least one of these questions, then it’s time to implement a corporate local messenger.

    Softros LAN Messenger is a simple and convenient office messenger - a program for messaging on a local network of any size. The company messenger does not require or use an Internet connection and thus guarantees that the transmitted information will not go beyond the local network. The application is easy to install and use, has a nice, intuitive interface and works correctly for users with limited rights. For your convenience, there is also a file sharing function between users of the network messenger. Fine tuning allows the administrator to prohibit the use of certain functions of the application and changing its settings, which can be useful in a large company with a dispersed infrastructure. A serverless messaging and file exchange system allows you to save on hardware. 14 years of continuous improvement guarantee the quality and stability of our messenger for your local network.

    brief information

    Latest version: 9.2

    Supported OS: Windows 2000, Windows XP, Windows 2003, Windows Vista, Windows 2008, Windows 7, Windows 8.1, Windows 10, Windows 2012, Windows 2016

    Supported network types: LAN, WAN

    Key features of Corporate Messenger:

    • Messaging with chat option
      Create virtual chats within your network with any number of users.
    • Secure Network Communication
      Messages do not go beyond the local network.
    • Group messages on the local network
      Use mass mailings messages to inform employees about upcoming events.
    • Quick messages
      Customize up to 10 preset template messages with the ability to instantly send via hotkey, for quick answers with typical phrases or sentences.
    • Huge set of Emoji emoticons
      Personalize your messages with the built-in Emoji pack (about 830 emoji)
    • Transferring files within a network, including mass distribution of files
      Sharing documents with colleagues has become much easier.

      Net send in Windows 7

    • User grouping
      Organize your colleagues by department or position for ease of communication.
    • Remote desktop sharing
      Request remote assistance from your colleague or network administrator directly from Messenger by giving him access to your desktop remotely. Ask the administrator to help you set up any programs or Windows on your computer, ask a colleague to help resolve work issues.
    • Remote desktop administration
      Administrators authorized in the domain as domain administrators, or on the remote computer as local administrators, can connect to user desktops directly, bypassing connection permissions from the user.
    • User Rights Management
      The administrator can prohibit the use of any function if necessary.
    • Message history
      You will never lose a single message because they are all saved in history files.
    • Serverless architecture of the messenger
      LAN Chat does not require a dedicated server installation.
    • No need for an Internet connection
      Messenger for local network works only within your company's network and saves your subordinates from wasting time on ICQ, saving your traffic and minimizing the possibility of attacks.
    • Terminal Server support
      LAN Messenger works successfully on a terminal server from Microsoft or Citrix, and also supports the simultaneous use of several user sessions. (After installing Softros TS Engine.)
    • Easy to install
      You don't need any administrative skills to start using our program. Just install Internal Messenger on every computer on your local network and it's ready to go.
    • Ease of distribution
      Having configured network settings, as well as settings for user groups on one computer, you can export them to a file and then use them on all computers within the company network. This simplifies setting up the program in complex networks.

    Top 10: Chat for LAN

    Client-server messenger for local network. Integrates with Active Directory, multilevel list contacts, bulletin board, mass notification system, conferences, SSL traffic encryption, offline message and file transfer, flexible user rights management system, file and folder transfer. Built-in Kanban boards for projects

    A client-server program for communication in a corporate network, which runs on the Windows OS platform. CommFort includes modules for chat, image sharing, file transfer, VoIP and video communication. Supports video conferencing for up to 32 users

    Softros LAN Messenger

    A simple and reliable messenger for the local network. Does not require an Internet connection. In addition to sending instant messages and transferring files, it allows you to create virtual rooms, make mass mailings, save message history, and group contacts by department or position.

    Corporate mobile messenger in source codes. Includes Corporate mobile messenger in source codes

    Multimedia corporate messenger. Supports online status control, chat, voice and video communication, conference calling, video mail, screen-sharing.

    Msg Team

    Works on PC, Mac and mobile platforms - iPhone, iPad, Nokia, Android and BlackBerry. Uses the open Jabber protocol (XMPP)

    Corporate client-server platform for interaction and communication in real time. Integration with Active Directory, access to the archive of all transferred messages and files, delivery of offline data and assignment of documents to employees with strong encryption.

    Simple and fast multi-user chat with activity control on the local network. Designed for medium and small local networks (up to 300 computers). Does not require a dedicated server and can be quickly deployed even on a network without a professional administrator.

    A simple and powerful cross-platform client-server chat for local networks and the Internet, open source.

    Free open-source cross-platform messenger for the local network. Does not require a server. Logging messages. File transfer.

    Free cross-platform chat for corporate networks. File transfer. Offline messages.

    Free sharing software instant messages in networks Microsoft Windows. High speed of message delivery a large number recipients (1000+)

    Team MSG existed back in Windows 2000/XP and was intended for exchanging messages between users logged in locally and users of terminal sessions (connected to a remote desktop). In Windows Vista and later Windows family operating systems, the MSG command became the main standard messaging tool because the command net send This OS is no longer supported.

    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- Waiting interval for confirmation from the recipient.
    /V- Display information about completed actions.
    /W- Waiting for a response from the user, useful together with /V.
    message- The message being sent. If not specified, a prompt is issued or input from STDIN is accepted.

    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 default security settings in Windows Vista, 7 and later operating systems later

    With standard settings, messages are not sent to users of remote computers and are accompanied by the following message:

    Error 1722 when retrieving session names

    This means that the computer where the message is to be received cannot obtain information about the logged-in users. The reason may be that the firewall is blocking incoming connections, the user's rights in relation to the remote system are insufficient, or remote procedure calls are prohibited in the terminal server service parameters. At a minimum, for messaging using the command msg between computers, you must have a user account valid for the remote system and make 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 the same value 0 what needs to be fixed. A reboot is required for changes to take effect.

  • because 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: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 a terminal session user named 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"- sending a test message from an RDP session user to a local user. If this command is not executed by a terminal session user, then the message will be sent by the local user to himself.

    To execute a command msg You can use the utility on behalf of another user PSExec from the package PSTools or standard means 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 to a local user of a computer running the Windows XP operating system who is not present (has not yet logged into Windows) are displayed in a window with an invitation to register in the system and may be accessible to others.

    Internet