Windows XP Sechedule Rebooting or Shutdown

There are two command line utilities.

 

1. shutdown   <==Remote PC

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

        No args                         Display information about the shutdown command.
        -i                              Display a GUI. It must be the first switch
        -s                              Shutdown the computer
        -l                              Log off the user(This cannot be used on a remote machine:”-m” switch)
        -r                              Restart the computer
        -a                              Cancles a system shutdown already in progress
        -m \\computername               Instruct a remote computer to shutdown
        -t xx                           Set a given time for shutdown,in 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: user code
                                            p: planned shutdown code
                                            xx: major reason code(positive integer less than 256)
                                            yy: minor reason code(positive integer less than 65536)

Ex) shutdown –s -t 3600   <==To cancels a system shutdown,type “shutdown -a “

 

2. tsshutdn

Usage: tsshutdn [WaitTime] [/server:ServerName] [/reboot] [/powerdown] [/delay:LogOffDelay] [/v]

        WaitTime : After notifying users, specifies an amount of time (in seconds) to wait before logging off all users from their sessions. The default is 60 seconds.
        /server:ServerName : Specifies the terminal server to shut down. If unspecified, the current terminal server is shut down.
        /reboot : Reboots the terminal server after user sessions are ended.
        /powerdown : Turns off the terminal server if the computer supports software control of AC power.
        /delay:LogOffDelay : After logging off users from their sessions, specifies the amount of time to wait before ending all processes and shutting down the terminal server. The default is 30 seconds.
        /v : Displays information about the actions being performed.
        /? : Displays help at the command prompt.

Ex) tsshutdn 3600  <==To Cancel this command, press “Ctrl+C”

저작권
Creative Commons License

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Spam Protection by WP-SpamFree