Categories




Still have a problem? Ask for help at our discussion forum.
Search


Advanced Search
Article Options
Popular Articles
  1. Handwrite for MSN Messenger
  2. Win2000 Logon Screen
  3. The difference between 64 and 32 bit processors
  4. Windows XP FAQ T
  5. Windows XP FAQ P
No popular articles found.

 »  Home  »  Miscellaneous Page 1  »  Shutdown PC with extended options
Shutdown PC with extended options
By  Super Admin  | Published  02/26/2005 | Miscellaneous Page 1 | Rating:
Shutdown PC with extended options

To shut down your computer from the command line, type "shutdown -s". This could be used in a batch file, for example. However, this does not shut down immediately - it gives a 30 second countdown. To see further options for the shutdown command, type "shutdown" at the command prompt and it will show you a list of options. You can even shut down another PC remotely! Logoff and restart are other options.

Here are some of the other flags you can use along with the another ussage example:


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

-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 less than 256)
yy is the minor reason code (positive integer less than 65536)

How would you rate the quality of this article?
1 2 3 4 5
Poor Excellent
Tell us why you rated this way (optional):

Send to Author Post on Site

Comments
  • Comment #1 (Posted by an unknown user)
    Rating
    thank for your software
     
  • Comment #2 (Posted by buu)
    Rating
    Thank you
     
  • Comment #3 (Posted by Emdadul Haq)
    Rating
    I've already test it but I couldn't. I wanna shutdown/restart my network PC remotely. It shows 'Network path not found' when i tried 'shutdown -s -m \bpc_01' bpc_01 is one of my client PC name. and when tried in win98 client PC it shows 'Access denied'. My main PC is winXP installed and other 6 PC is winXP except one in win98. Would you please gimme some idea about my probs. You can email me at mailpabna@yahoo.com
     
  • Comment #4 (Posted by Juss)
    Rating
    How do you find your IP address?
     
  • Comment #5 (Posted by an unknown user)
    Rating
    is just a copy-paste from the explantion from command promp, nothig else more
     
  • Comment #6 (Posted by an unknown user)
    Rating
    Shut down is not reconized as internal command prompt.
     
  • Comment #7 (Posted by an unknown user)
    Rating
    Unfortunately shutdown command can't really power a computer off on Windows 2000. It only shutdowns Windows.
     
  • Comment #8 (Posted by Ridiculous)
    Rating
    You can only shut other computers if you have admin previlages or if you know their password. You can also check one of the remote tools available like here. www.evilopinions.com
     
  • Comment #9 (Posted by an unknown user)
    Rating
    it doesn't work...
     
  • Comment #10 (Posted by __Unkn0wN__)
    Rating
    well the best way is to use administrative tool. and i was also having the same problem, but it failed. Now i am using Radmin and it works fine. not only it works fine for shutdown, i can also control my client PC.
     
  • Comment #11 (Posted by an unknown user)
    Rating
    I successfully used "shutdown -r -f -m \main" to reboot my main my. However, this just brings \main back to the user login. This is a problem because I want WindowsXP (pro) to start and run the programs in it's startup, a sopposed to sit there at the login screen. I cannot remove the login password because that is needed by Remote Desktop Connection, which I use a lot. How can I make these work hand in hand?
     
  • Comment #12 (Posted by Ananta)
    Rating
    HI i couldn't find how to use the command so can any one tell me how to use this please
     
  • Comment #13 (Posted by Richard)
    Rating
    i cant shutdown the win xp from a win98 remote pc.. give me another option on that matter..pls..tnx in advance
     
  • Comment #14 (Posted by an unknown user)
    Rating
    hai
     
  • Comment #15 (Posted by an unknown user)
    Rating
    best answer
     
  • Comment #16 (Posted by Supaman)
    Rating
    Look I've tried this command for some time: shutdown -f -s -t 40 -c "COMMENT" -m \(the name of the second computer, or as I found it on "net view") Problem is: It doesn't work. At all. Any tips?
     
  • Comment #17 (Posted by an unknown user)
    Rating
    help full command
     
  • Comment #18 (Posted by an unknown user)
    Rating
    why show msg "access is denied"
     
  • Comment #19 (Posted by an unknown user)
    Rating
    Exactly what I needed. Worked great!
     
  • Comment #20 (Posted by an unknown user)
    Rating
    thankxxxx
     
  • Comment #21 (Posted by an unknown user)
    Rating
    example> shutdown -i \hostname
     
  • Comment #22 (Posted by an unknown user)
    Rating
    how can use this command send any examples
     
  • Comment #23 (Posted by an unknown user)
    Rating
    good info
     
Submit Comment