Shutdown !!!

Source: Internet
Author: User

use Windows to set the scheduled task (timed Shutdown, timed restart)

shutdown.exe is a built-in Shutdown program, it is saved in the c: \ windows \ system32 folder (drive C is the system disk)

Example 1 : The system is automatically disabled after 1 hour

click Start> Run ", in "open", enter the command "shutdown-s-t 3600" (Note: No quotation marks are entered. There is a space between parameters. The unit of 3600 is seconds) click OK. Bo 1 guest in http://blog.sina.com.cn/ranhongyuan a branch

Example 2 : disable the system at a certain time (for example, 19 : 00:

In "open", enter the command "at shutdown-s.

 

Example 3: Cancel Timed Shutdown:

In "open", enter the command "shutdown-.

Example 4 : Set the fast cut mode to shut down

Create a shortcut for shutdown.exe on the table, right-click it, and select" properties "from the pop-up menu ". In the Properties dialog box, add "-S-T 10" to the path of the "target" text box. "-s" indicates that the computer is disabled, of course, you can change "-R" to "restart the computer"; "-T" indicates that the countdown time is set, and the number "10" table is 10 seconds. You can make changes as needed, which greatly reduces the waiting time for shutdown. BO 2 customers in http://blog.sina.com.cn/ranhongyuan a branch

 

The other parameter is "-C display prompt message", that is, the system displays the information you set when you want to shut down. Note that the prompt message cannot exceed 127 characters.

 

Set scheduled tasks as needed

Windows XP is controlled by the shutdown.exe program and is located in the windows \ system32 folder. If you want the same effect for Windows, copy shutdown.exe to the system directory. BO 3 guest in http://blog.sina.com.cn/ranhongyuan a branch

Example 5 : Set automatic shutdown at a specific time!

purpose: the computer is still working while a person is leaving the computer.

for example, to shut down your computer at, you can choose Start> Run ", enter "at shutdown-s", so that the "system shutdown" dialog box will appear on the computer at. By default, there will be a 30-second countdown and you will be prompted to save your work. If you want to shut down the server by a time-based method, you can enter “shutdown.exe-s-t 3600 ", which indicates that the server will automatically shut down after 60 minutes, and" 3600 "indicates 60 minutes.

Example 6 : Use scheduled tasks to periodically restart computers.

as we all know, windows If the server system is restarted from time to time, it will be slow to death. Therefore, servers running important websites and special services can use this time to restart the system to release resources or improve performance.

enable the system to automatically restart once every night after midnight ! (For 2003 server system, others to try) http://blog.sina.com.cn/ranhongyuan a fair 4 customers

Start → program → attachment → System Tool → Task Scheduler → open and then browse C: \ windows \ system32 \ shutdown.exe click the next step, and then add shutdown.exe -R to the end. Then, click Next to set it as required. it can be restarted every day, every week, or every day ..

usage as needed.

 

For detailed parameters, see:

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.