Windows automatic reboot script




















Once done, move to the Trigger tab and click on the New button to create an execution trigger — which is, the event that will make the system run the task itself. A New Trigger modal window will then be opened, which you can use to setup such event. The most common trigger to setup here is a time-based trigger, which can be set by selecting the On a schedule option on the Begin the task dropdown list:.

For further info regarding triggers , take a look at this MS TechNet page. Once done, move to the Actions tab and click to the New button to setup the command to execute whenever the trigger fires. Alternative to the -r option see below. Alternative to the -s option see above.

For a detailed explanation of all the shutdown. As soon as you define the Action , your planned activity should be ready: take a few seconds to check all the settings once again, then click OK to create the task.

If you asked to run the task with elevated privileges the system will ask you to enter the credentials of the Administrator account or the account with administrative privileges you have chosen in the General tab : once done, the result of your work will appear, summarized in a single line, within the Task Scheduler main panel:. In case you need to do the same on Linux machines, check up this post!

November 30, November 30, We may use the PC on occasion but will probably forget it's in our home. This way of automatically restarting maybe I'll schedule daily should keep everything running smoothly. How can I make my computer restart automatically everyday? Windows Thx David. This thread is locked. You can follow the question or vote as helpful, but you cannot reply to this thread. I have the same question Report abuse.

Details required :. Cancel Submit. Jenicel Dri Microsoft Agent. Hi David, You can use the Task Scheduler to shutdown, restart or perform any action at one time or periodically. Also, make sure to enter the exit line at the bottom of the batch file in case Windows cannot restart the computer because of the open MS-DOS window.

Microsoft Windows 98 and Windows ME users can also run the following command to perform different forms of rebooting or shutting down. Where n is equal to one of the numbers below, depending on the action you want the computer to perform. If you need to restart from MS-DOS, see the debug routines page for steps on how to write a debug routine to restart these computers. Note There is no way to start or boot up a computer using a batch file.

Windows Vista, 7, 8, and Windows XP. Windows 95, 98, and ME. Tip After the shortcut is created, you can assign the shortcut a keyboard shortcut to shut down the computer using the keyboard. Tip If you want to create a batch file, you can add any of the above shutdown commands into the batch file with any other commands. Note When typing the above two lines, spacing is important.



0コメント

  • 1000 / 1000