MSG.exe – Windows CMD Command
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Send a pop-up message to a user.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
Syntax MSG username [options] [message] MSG sessionname [options] [message] MSG sessionid [options] [message] MSG @filename [options] [message] MSG * [options] [message] Options username The user to send to, * will send to all sessions on the machine. /SERVER:servername The server to contact (default is current). /TIME:seconds Time delay to wait for receiver to acknowledge msg. /V Verbose, display extra information. /W Wait for response from user, useful with /V. message The message text to send, some special characters may have to be escaped. |
Msg is most commonly used to send Terminal Server/Citrix shutdown messages.
The ‘Home’ editions of Windows don’t include MSG.
Special characters: dash (-) forward-slash (/) and quote marks (“) can be escaped with a backslash (undocumented)
If no message text to send is specified, MSG will prompt for it (also reads from stdin)
@filename Identifies a file containing a list of usernames, session names, or sessions to send the message to.
1 2 3 4 5 |
Examples C:\> msg userf4t "The system will shutdown at 10pm" C:\> msg * "The \"ACME\" system is currently down." |
I truly appreciate this post. I have been looking everywhere for this! Thank goodness I found it on Bing. You’ve made my day! Thanks again