Shutdown Command Line

Shutdown Command Line in Windows XP. Command line can do in cmd.exe, you can run this program in c:\windows\system32\cmd.exe or just do this, click start menu > run > type cmd > open. This command line can run in cmd.exe, just type the syntax and enter but read this article before.

Shutdown Command Line

Syntax

shutdown [{-l-s-r-a}] [-f] [-m [\\ComputerName]] [-t xx] [-c "message"] [-d[u][p]:xx:yy]

Parameters

-l
Parameter command line for log off user that aktive, thats the default.
Example : if you want log off your computer type this in cmd
shutdown -l

-s
Parameter command line for shutdown your computer, thats the default.
Example : if you want shut down your computer type this in cmd
shutdown -s

-r
Parameter for restart or reeboot your computer
Example : if you want restart or reboot your computer type this in cmd
shutdown -r

-a
Parameter command line for abort shutdown. Ignore other parameter, except -l and ComputerName. You can only use -a during the time is out of periode.
Example : if you want abort shutdown type this in cmd
shutdown -a

-f
Parameter commadn line for Force running aplication to close.
Example : if you want shutdown and close all aplication that still active type in cmd
shutdown -s -f

-m [\\ComputerName]
Parameter command line for specifies the computer that you want to shutdown
Example : if you want shutdown computer 5 with name comp5 type this in cmd.
shutdown -s -m \\comp5

-t xx
Parameter command line for set the timer for shutdown in xx seconds. the default is 20 seconds.
Example : if you want shutdown computer and give 1 minute to save all jobs type this in cmd.
shutdown -s -t 60

-c "message"
Parameter command line for display message before shutdown execute. Message must be enclose by quotation and maximum message is 127 character
Example : if you want shutdown user 4 with computer name comp4 in LAN and want display message type this in cmd.
shutdown -s -m \\comp4 -c "this computer is shutdown by server admin, please save all your job"

-d [u][p]:xx:yy
Lists the reason code for the shutdown. The following table lists the different values.

Remark
You can bundle the parameters in one command.

Example of syntax
  1. if you want log off computer user in your workstation in 30 seconds. you can bundle parameter -l , -m [\\ComputerName] , -t xx
    shutdown -l -m \\comptrone -t 30
  2. If you want adding message and shutdown computer user at workstation in 45 seconds, try bundle -s , -m [\\ComputerName] , -c "message" -t xx
    shutdown -s -m \\computertwo -c "this computer will be shutdown after 45 seconds, save all your data" -t 45
  3. and if you want cancel your shutdown job try -a. before the time is up only
    shutdown -a
  4. Try another combination. good try

writen by ali
source from windows xp help and support

Comments

  1. LOL... I used this on my friends :D

    ReplyDelete
  2. remember if it doesn't work then u need admin rights ;)

    ReplyDelete
  3. is there a way to have it still shut down the computer but not display the message saying it is going to shut down?

    ReplyDelete
  4. I'm not sure where you are getting your information, but great topic. I needs to spend some time learning more or understanding more. Thanks for great information I was looking for this info for my mission.

    Feel free to surf to my web site :: www.vigrxenhancer.com

    ReplyDelete
  5. This article is standard shutdown command for windows XP only

    ReplyDelete

Post a Comment