Send a pop-up message to a user.
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, sessionnames or sessionids to send the message to.
C:\> msg user64 "The system will shutdown at 10pm"
C:\> msg * "The \"ACME\" system is currently down."
# And these children that you spit on, As they try to change their worlds
Are immune to your consultations, they're quite aware of what they're going through # - David Bowie
ECHO - Display message on screen.
TYPE - Display the contents of a text file.
PS C:> [Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
PS C:> [Windows.Forms.MessageBox]::show("Hello World", "My PopUp Message Box")
Equivalent bash command (Linux): echo - Display message on screen.