Ask Leo!

Is there a way to shutdown my headless Windows XP Pro machine remotely?

Home » Video Tips
Home » Windows

Comments

Read the article that everyone's commenting on.
RSS feed Subscribe to the RSS Feed for comments on this article.

Comment Page:  1  |  2  |  3  |  4  |  5  |  6 

Another way is to choose Windows Security from the Start menu. This will bring up a dialog box that has a Shut Down button that has the Log Off, Shutdown, Restart, Disconnect, and Standby options.

Posted by: Mark at August 11, 2003 08:38 PM

Good tip, Mark. Unfortunately the Windows Security menu item disappears if you customize and choose "classic start menus". The good news, though, is that the task manager, which is what that really is, is also accessible if you right-click the date in the task bar, and choose "task manager". It has the Shutdown menu with all the options you list.
Thanks!
Leo

Posted by: Leo at August 12, 2003 07:39 PM

Windows XP Professional has built in support for shutdown via the "shutdown" command. Here is the useage:

C:\shutdown /?
Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy]

no args Display this message (same as -?)
-i Display GUI interface, must be the first option
-l Log off (cannot be used with -m option)
-s Shutdown the computer
-r Shutdown and restart the computer
-a Abort a system shutdown
-m \\computername Remote computer to shutdown/restart/abort
-t xx Set timeout for shutdown to xx seconds
-c "comment" Shutdown comment (maximum of 127 characters)
-f Forces running applications to close without warning
-d [u][p]:xx:yy The reason code for the shutdown u is the user code p is a planned shutdown code xx is the major reason code (positive integer le
ss than 256) yy is the minor reason code (positive integer less than 65536)

Posted by: Brent at August 28, 2003 03:37 PM

But how does the remote computer authenticate you with this shutdown command?

Posted by: bero at September 10, 2003 10:53 AM

NT/XP Cross-machine authentication is a confusing topic, to be sure. The bottom line is that the account you're logged into on machine A must be recognized by machine B and have appropriate permissions to shut down machine B. Depending on how things are set up the accounts setup could be as simple as having the same account user/password on both machines. It could be as complicated as a full Windows NT Domain or Active Directory entry.

From:
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/windowsserver2003/proddocs/datacenter/rrcHowToShutdownRemotely.asp :

"To perform this procedure, you must have the user rights to force a shutdown from a remote system."

Leo

Posted by: Leo at September 10, 2003 08:05 PM

Oh... and the sysinternals tool psshutdown allows you to specify a user & password, bypassing the cross machine account confusion altogether.

Leo

Posted by: Leo at September 10, 2003 08:06 PM

For XP users, why not just click on the Desktop and just click on Alt+F4, which should bring up the shutdown,restart, window.

Posted by: erixon at October 15, 2003 02:08 PM

excellent that last comment my friend.. well done it worked like a dream.

Posted by: porksaber at January 14, 2004 03:28 AM

I have tried to run a task used "psshutdown" with -f -k -t and "windows xp shutdown command" with -f -s -t from Symantec Ghost console. However every time machine has restarted instead power shut. Any idea.

Posted by: Michael Chang at March 7, 2004 08:21 PM

please send me the method to shutdown remote machine using vb.net code.

Posted by: yash at March 17, 2004 10:24 PM
Comment Page:  1  |  2  |  3  |  4  |  5  |  6 
Read the article that everyone's commenting on.
RSS feed Subscribe to the RSS Feed for comments on this article.
Post a Comment

««   »»

Ask Your Question:


ask-leo.com
Web

Popular & Hot

Stay Informed

Weekly Newsletter

Archives

By Category
By Date

Advertisers

Advertise on Ask Leo!