Previous Posts


Receive Hotmail/Live mail in Outlook 2003 and 2007...

Write programs with notepad

Remote Desktop 2 for OSX Released (BETA)

Enable Ctrl-Alt-Delete in Vista

Compress files automatically

Set default printer from a script

Windows XP SP3 (Beta) Released to testers

Set IE default home page from a script

Add a new email domain to Exchange 2003

Backup your files using Remote Desktop



Archives

May 2005

January 2006

April 2006

May 2006

June 2006

July 2006

September 2006

October 2006

November 2006

December 2006

January 2007

February 2007

March 2007

April 2007

May 2007

June 2007

July 2007

August 2007

September 2007

October 2007

November 2007

December 2007

January 2008

February 2008

March 2008

April 2008

May 2008



Subscribe to our Feed:






Vista - What happened to the Net Send Command

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 :)


Posted By: Steve Wiseman on Thursday, August 16, 2007

Check out our utilities for windows

 



Copyright © IntelliAdmin, LLC, 2008. All Rights Reserved