Windows system, Shutdown command usage

Source: Internet
Author: User

We often need to shut down/restart the maintenance server during off-hours, the server comes with command tools, without the use of third-party software can be implemented, very simple.


Shutdown command
Temporary use, such as just the day requires automatic shutdown,/t followed by countdown shutdown time, you can also use at the implementation, look down.
shutdown/f/s/t 0 (change/s parameter to/R parameter is immediate restart)

If you need to add a few more arguments in a few days of the one month or every Monday, or even daily, you need to use the AT command (at command, which is intended to run commands and programs on the computer at a specified time and date). )

-Automatic shutdown at 20:00 that evening, so to write:
At 20:00 shutdown/f/s/t 0


-1, 5, 10, 15, 20th automatic shut-off at 0 points per month
At 00:00/every:1,5,10,15,20 shutdown/f/s/t 0

-23:00 Auto Power off per Monday
At 23:00/every:monday shutdown/f/s/t 0

-Auto Power off every 22:00
At 22:00/every:sunday,monday,tuesday,wednesday,thursday,friday,saturday shutdown/f/s/t 0

Cancel Shutdown
The timing execution instructions set at the AT command can be seen in the "Task Scheduler" of the "Control Panel", and the deletion will be done by deleting it, and entering at/on the command line will list its help information, and in the Help and Support Center there are more detailed explanations and examples, which can be done by canceling this timed shutdown:
Executing at with no parameters will list what has been set, note the status ID number, for example, 1, and then enter:
At 1/delete
can also be abbreviated as:
At 1/d
Using the/d parameter without serial number will delete all settings, if you want to delete all settings without confirmation, available: at/d/y


attached shutdown usage and parameters

Usage: Shutdown [-I. |-l |-S |-r |-a] [-f] [-M \computername] [-t XX] [-C "comment"] [-D up:xx:yy]
There are no parameters to display this message (same as?)
-I display GUI interface, must be the first option
-L logoff (cannot be used with option-m)
-S shut down this computer
-R shutdown and restart this computer
-A discard system shutdown
-M \computername remote computer shutdown/restart/abort
-T XX sets the timeout for the shutdown to xx seconds
-C "comment" Close comment (maximum 127 characters)
-F force running applications to close without warning
-D [u][p]:xx:yy shutdown reason code
U is user code
P is a planned shutdown code
XX is a


This article is from the "itnotes" blog, make sure to keep this source http://itnotes.blog.51cto.com/4668452/1745888

Windows system, Shutdown command usage

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.