Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have downloaded msg.exe and installed it but I just can't manage to use it. I work under Windows 7 and since NetSend disappeared I had to find a solution and that's why I downloaded msg.exe and dmessage. But the first doesn't work and the second is paying.

Does anybody know how to use msg.exe?

Related: Send LAN messages

share|improve this question
1  
I believe net send messages have been blocked by default since one of the service packs for Windows XP. You may not be able to get it working. Also, what is it doing that isn't working? You may need to add firewall exceptions. –  Joshua Nurczyk Apr 12 '11 at 13:14
4  
"It doesn't work" is not welcome here. Please explain exactly what you have tried and what error messages, if any, were displayed. –  grawity Apr 12 '11 at 13:18
    
Details would be good. Are you in a domain environment (business/at work) and they are blocking the message service on the network or via group policy? Are you on a home or personal system and if so, do you have shared credentials set up on your network allowing such inter-pc communication? –  music2myear Apr 12 '11 at 15:19
    
This is not a message board. Leave your comments as comments, not as answers to the wrong question. –  random Jul 5 '11 at 15:38

2 Answers 2

The msg command should already come with Windows. (At least it's here on XP.)

The general syntax is:

msg [/server <server>] <session> [<message>]
  • /server <server> is optional. Use it when you want to send the message to another computer. (This means almost always.)

  • <session> can be:

    • username of a logged in user; examples: Administrator, jsmith

    • "session name" of a connected session: console means the one that's currently using the monitor and keyboard. RDP sessions are named rdp-tcp#<number>.

    • numeric session ID; works for disconnected sessions too

    • * to send to all sessions on the computer. (This is equivalent to sending a message to a computer in net send.)

    Use qwinsta or qwinsta /server <server> to list all currently existing sessions. (Or download "Windows 2003 Admin Tools" and use its tsadmin tool.)

    Note that unlike with NetBIOS-based NET SEND, you can't send a message to an entire workgroup.

  • <message> is the text you want to send. If you don't specify any, then msg will wait for one to be typed in, until you enter CtrlZ on a line by itself.

For example:

msg /server snow console Hi there!

All these tools (msg, qwinsta, quser, qprocess, tskill, tscon, shadow) use Terminal Services RPC. On consumer versions of Windows, this RPC can only be accessed from the local machine and not over the network. To re-enable it, follow these instructions.

TL;DR summary: Run the following from an elevated Command Prompt.

reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v AllowRemoteRPC /t REG_DWORD /d 1 /f

RPC is carried over the same protocol as File Sharing. If msg or qwinsta return an "Access denied" even after allowing remote RPC (see above), make sure you can access the other computer's files, authenticated (not as Guest).

share|improve this answer
    
The TerminalServer should be "Terminal Server" –  Nassign Mar 8 '12 at 7:23

The msg.exe command is already installed as part of Windows 7 (on ultimate & business only). It works nearly identical to the "net send" syntax from pre-Vista days. Simply drop to a cmd prompt & type the following:

msg JoeTheUser Hi Joe... This is a message from me.

or for a workstation:

msg /server:SomeWorkstation Please Logoff as your typing hurts my feelings.

In contrast to the old "net send" command, msg is NOT dependent on the windows messaging service.

share|improve this answer

protected by slhck Apr 27 '13 at 19:34

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.