Win 2003 server timed reboot command

Source: Internet
Author: User
Tags integer

 WINDOWS SERVER 2003 has a command called Shutdown.exe, and its specific parameters are as follows:

Usage: Shutdown [-i |-L | s |-r |-a] [-f] [-M computername] [-t XX] [-c ' comment '] [D-P:XX:YY]

-I display GUI interface, must be the first option

-L logoff (cannot be used with option-m)

-S shutdown this computer

-R shutdown and restart this computer

-A abort system shutdown

-M ComputerName remote computer shutdown/reboot/Abort

-T XX setting the timeout for shutdown is xx seconds

-C "comment" closes comment (maximum 127 characters)

-F forced-run application shutdown without warning

-D [p]:xx:yy shutdown reason code

U is user code

P is a planned shutdown code

XX is a primary reason code (a positive integer less than 256)

YY is a secondary reason code (a positive integer less than 65536)

If you set the 0 Morning 3-point server to automatically restart, you can execute commands in the run

At 3:00/every:m,t,w,th,f,s,su shutdown.exe/r

If you do not need to, in the Control Panel, schedule the task to delete the item.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.