XP timed Shutdown command

Source: Internet
Author: User

  Most of the way to achieve automatic shutdown is to use a number of third-party software, so not only troublesome, but also to achieve this small function of a dedicated software, a significant fuss! In fact, Windows XP (Windows 2000 also can) itself with a timer shutdown function, let's look at how to use the Timer Shutdown command to achieve Windows XP automatic shutdown:

The scheduled shutdown commands for Windows XP are controlled by the Shutdown.exe program and are located in the WindowsSystem32 folder. If you want Windows 2000 to have the same effect, you can copy the Shutdown.exe to the system directory.

For example, your computer to shut down at 22:00, you can choose "Start → run", enter "at 22:00 shutdown-s", so that at 22 o ' clock computer will appear "System Shutdown" dialog box, the default has 30 seconds countdown and prompts you to save the job. If you want to shut down the machine by the countdown, you can enter "shutdown.exe-s-T 3600", which means that 60 minutes after the automatic shutdown, "3600" represents 60 minutes.

Set the automatic shutdown, if you want to cancel, you can enter "Shutdown-a" in the run. Also enter "Shutdown-i", you can open the set up automatic Shutdown dialog box, to set up the automatic shutdown.

Shutdown.exe parameters, each has a specific purpose, the execution of each will have a different effect, such as "-S" means to shut down the local computer, "-a" to cancel the shutdown operation, the following list of more parameters, you can use in the Shutdown.exe.

-F: Forcibly shutting down the application

-M computer name: Controlling remote computer

-I: Displays the graphical user interface, but must be the first option for shutdown

-L: Log off Current user

-r: Shutdown and reboot

-T time: set down shutdown countdown

-C "Message content": Enter the message contents in the Shutdown dialog box (not exceeding 127 characters)

Sometimes we need to shut down the computer regularly, and here's a simple way to implement a timed shutdown under Windows XP.

Specifies that the system automatically shuts down after 22 minutes: Click "Start → run" and enter the command "shutdown-s-T 1320" in "open" (note: quotation marks are not entered, there are spaces between the parameters, 1320 is seconds), click "OK" button.

Specifies that the system automatically shuts down at a certain time, such as 12:00: Enter the command "at 12:00 shutdown-s" in "open".

Cancel timed shutdown: Enter the command "Shutdown-a" in "open".

The implementation is implemented using the "Shutdown" command, and the Shutdown parameter is to enter "Shutdown" in the Command line window. The author thinks the most useful is "I" parameter, can bring up "Remote shutdown dialog box", can conveniently realize the remote computer in the LAN shutdown, interested friends can try.

Start-Programs-attachments-System Tools-Schedule tasks-Add task schedules-next-Browse "C:windowssystem32shadow.exe" Next-Select the time to shut down, next-enter the username and password, as long as the user is on the system, but must have a password, No, you have to set one, Next, "Open advanced properties for this task on completion", and add "s" quotes behind the run bar.

1, Win2000 System has no shutdown command file, if used in 2000, must copy WinXP Shutdown.exe file (in the XP C disk can be found), Win2K c:winnt to use.

2, the realization of a daily scheduled shutdown from the new start, set the scheduled shutdown command, in the control Panel of the task plan to add a plan, in the operation of the input "C:winnt shutdown.exe-r" in the Set password to enter the password of the administrator, in the schedule to enter the daily running time, That will enable you to restart your computer on a regular basis every day.

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.