Scheduled restart/shutdown commands per day

Source: Internet
Author: User

Click Start menu, enter CMD in the run, press OK, and then enter the following information: at 23:30/EVERY:M,T,W,TH,F,S,SU shutdown-s-T 120 23:30 can be changed to the time you want, m,t,w,th,f,s, Su respectively corresponds to Monday to Sunday, if you do not want to automatically shut down on Saturday Sunday, the S and Su removed, 120 is the countdown time, two minutes, you can also increase or decrease as needed

P Daily Timer shutdown command

Win+r key or "Start" "Run"

At 00:00/every:m,t,w,th,f,s,su shutdown-s-T 120 you can change the 00:00 to the time you want to shut down every day, 120 is the number of seconds to shut down the countdown, or the M,T,W,TH,F,S,SU is the abbreviation from Monday to Sunday. , you can delete the days you do not want to shut down regularly if you have a pop-up window countdown shutdown, use the shutdown-a command to cancel

This command simply adds a task that can be removed from the Task Scheduler in the Control Panel.

Because this is a scheduled task, you must turn on the Task Scheduler service in the Services project and set it to start automatically.

If you do not know where to look, please enter services.msc in the run and return from: Club.ChinaRen.com

Automatic power-on automatic timing boot implementation: First, when you start the computer, press the "Delete" key to enter the BIOS interface. Select the "Power Management Setup" menu in the BIOS Setup main screen to go to the Power Management window. By default, the "Automatic Power up (timed boot, some machine option is resume by Alarm)" option is off, move the cursor to the item, and use the PageUp or PageDown page key to change "Disabled" to "Enabled". The date and time of power-on is then set separately in "date" and "Alarm" (HH:MM:SS) Alarm.

If "Date" is set to 0, the default is to start every day on a regular basis. After setting press "ESC" key back to the BIOS Setup main screen, click "Save exit Setup", press "Y" key to save CMOS setting to exit, then the machine will restart, then it is done.  Of course, it is worth noting that the timing is open. From: Club.ChinaRen.com

From: Club.ChinaRen.com Windows XP timed Shutdown command from: Club.ChinaRen.com Windows XP timed Shutdown command

Most of the methods of auto-shutdown are using some third-party software, which is not only troublesome, but also dedicated to the implementation of this small function of a software, make a fuss! In fact, Windows XP (Windows 2000 can) itself has the function of a timed shutdown, let's look at how to implement automatic shutdown of Windows XP.

Windows XP shutdown is controlled by the Shutdown.exe program, which is located in the Windows\System32 folder. If you want Windows 2000 to do the same, 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 the 22 point of the computer will appear the "System Shutdown" dialog box, the default has a 30 seconds countdown and prompts you to save the work. If you want to shut down by a countdown, you can enter "shutdown.exe-s-T 3600", which means auto power off after 60 minutes, and "3600" for 60 Minutes.

After setting the auto power off, if you want to cancel, you can enter "Shutdown-a" in the run. Also enter "Shutdown-i", you can open the Set Automatic Shutdown dialog box, the automatic shutdown to set.

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

-F: Forcibly closing the application

-m\\ Computer Name: Controlling the remote computer

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

-L: Log off the current user

-R: Shutdown and restart

-T time: Set shutdown countdown

-C "Message content": Enter the message content in the Shutdown dialog box (cannot exceed 127 characters)

Add two points:

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

2, to achieve a daily scheduled shutdown from the start, add a plan in the task plan in the Control Panel, enter "C:winntshutdown.exe-r" in the run to enter the administrator's password at the setting password, enter the daily running time at the schedule, so that you can achieve a daily scheduled restart of the computer

Scheduled restart/shutdown commands per 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.