CmdID

CmdID / Commands

msg

Sends a message to a user on a Remote Desktop Session Host server. Windows commands reference

On Windows File msg.exe

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

Sends a message to a user on a Remote Desktop Session Host server. NOTE: You must have Message special access permission to send a message.

msg {<username> | <sessionname> | <sessionID>| @<filename> | *} [/server:<servername>] [/time:<seconds>] [/v] [/w] [<message>]
msg User1 Let's meet at 1PM today
msg modem02 Let's meet at 1PM today
msg @userlist Let's meet at 1PM today
msg * Let's meet at 1PM today
msg * /time:10 Let's meet at 1PM today
<username>Specifies the name of the user that you want to receive the message. If you don't specify a user or a session, this command displays an error message. When specifying a session, it must be an active one.
<sessionname>Specifies the name of the session that you want to receive the message. If you don't specify a user or a session, this command displays an error message. When specifying a session, it must be an active one.
<sessionID>Specifies the numeric ID of the session whose user you want to receive a message.
@<filename>Identifies a file containing a list of user names, session names, and session IDs that you want to receive the message.
*Sends the message to all user names on the system.
/server:<servername>Specifies the Remote Desktop Session Host server whose session or user you want to receive the message. If unspecified, /server uses the server to which you are currently logged on.
/time:<seconds>Specifies the amount of time that the message you sent is displayed on the user's screen. After the time limit is reached, the message disappears. If no time limit is set, the message defaults to 60 seconds and disappears.
/vDisplays information about the actions being performed.
/wWaits for an acknowledgment from the user that the message has been received. Use this parameter with /time:<seconds> to avoid a possible long delay if the user does not immediately respond. Using this parameter with /v is also helpful.
<message>Specifies the text of the message that you want to send. If no message is specified, you will be prompted to enter a message. To send a message that is contained in a file, type the less than (<) symbol followed by the file name.
/?Displays help at the command prompt.

Windows

from tldr-pages, CC BY 4.0

Send a message to a user or session.

Send a message to a specified user or session

msg username messageIdentify

Send a message from stdin

echo "message" | msg usernameIdentify

Send a message to a specific server

msg /server:server_name usernameIdentify
/serverSpecifies the Remote Desktop Session Host server whose session or user you want to receive the message. Windows commands reference

Send a message to all users of the current machine

Set a delay in seconds for a message

msg /time:10Identify
/timeSpecifies the amount of time that the message you sent is displayed on the user's screen. Windows commands reference