News, Product Information, and Tips
Check out our free utlities in the downloads section

Remote Administration



Remote Administration For Windows. Easy remote access of Windows 7, XP, 2008, 2000, and Vista Computers

Click here to find out more

Create Outlook Profiles



No more setup wizards in Outlook. Setup Outlook Profiles automatically from the command line

Click here to find out more

Network Administrator



Reboot Hundreds of computers, disable flash drives, deploy power managements settings.

Click here to get your free copy of Network Administrator. Over 25 plugins to make your life easier

USB Disabler



Disable Flash Drives for specific users, or only allow specific drives.

Click here for your free trial

Search

Archives

Vista – What happened to the Net Send Command

by Steve Wiseman on August 17, 2007 · 5 comments

in Windows

On occasion I will use the ‘net send’ command to fire off a quick message to anyone working on our servers. Usually in the form of a script that will notify everyone I am about to reboot. I was surprised to find it didn’t work at all when running under Vista (Well not that surprised)

After some digging around I found that Vista now has a new way to do this – the MSG command (I suspect the msg command has been around before that…but this is the first Windows OS where net send has been removed). Here is the syntax:

MSG {username | sessionname | sessionid | @filename | *}
    [/SERVER:servername] [/TIME:seconds] [/V] [/W] [message]
  username            Identifies the specified username.
  sessionname         The name of the session.
  sessionid           The ID of the session.
  @filename           Identifies a file containing a list of usernames,
                      sessionnames, and sessionids to send the message to.
  *                   Send message to all sessions on specified server.
  /SERVER:servername  server to contact (default is current).
  /TIME:seconds       Time delay to wait for receiver to acknowledge msg.
  /V                  Display information about actions being performed.
  /W                  Wait for response from user, useful with /V.
  message             Message to send.  If none specified, prompts for it
                      or reads from stdin.

If you wanted to send a single message to the server named ‘Server2003′ it would look like this:

C:\msg /server:Server2003 console “Server will be rebooted shortly – Please save your work asap!”

Now I can reboot my servers without giving someone a nasty surprise :)

Like this article? Then sign up for my newsletter to get free tips and software sent right to your inbox once a week. Like you, I hate spam – I will never spam, or sell your email address.

Related Articles:

{ 5 comments… read them below or add one }

1 Elmer Homero January 27, 2010 at 11:16 am

If only this were true of my Windows Vista Home Premium!

C:\>msg
‘msg’ is not recognized as an internal or external command,
operable program or batch file.

2 michiel June 18, 2010 at 8:37 am

got the same problem here,
‘msg’ is not recognized as an internal or external command,
operable program or batch file.

3 Steve Wiseman June 18, 2010 at 11:36 am

By any chance you you have Vista, or Windows 7 Home edition? If so, MS removed ‘MSG’ from those versions of Windows :(

4 Zan July 3, 2011 at 6:07 pm

It wasn’t removed the C:\> refers to where is is on the drive.

On both Vista & Windows 7 I can just typ MSG at any prompt:

Example C:\Users\\ is my prompt and I just type MSG and it works :)

5 Steve Wiseman July 4, 2011 at 11:54 pm

Thanks Zan, that was helpful

Steve

Leave a Comment

Category Links - Windows Forum - Exchange Forum