In this article, you can learn how to automatically restart your computer once or repeatedly.
Type the following: shutdown -r -t 240
Your computer will automatically restart in 4 minutes (in this case, 240 is the number of seconds, i.e., 4 minutes) after you have executed the above command. Make sure to replace 240 with the desired duration.
To execute the command, click “OK,” and a confirmation popup will appear.
- You can use the above command in one of the following programs: Command Prompt, Windows PowerShell, Task Manager (in the Task Manager, click File > Run new task to use the command), address toolbar, and address bar of the File Explorer.
- You can cancel the reboot by using shutdown -a in Run before the scheduled time.
On the right side of the screen, click “Create Basic Task.”
Enter a name and description (optional) for the task in the “Create Basic Task Wizard” pop-up window. Click “Next.”
The repetition frequency of the task can now be set. I chose “Daily,” which is the default. Then click “Next.”
You can specify the date when the task will begin here. Additionally, you can set the time at which the PC should restart automatically. You can also change the recurring days if you wish. I only changed the time and left the rest untouched. Then click “Next.”
As you can see, the “Start a program” option is selected by default. Click “Next.”
Click the “Browse” button, and then choose “shutdown.exe” from the System32 folder. Add /r in the “Add arguments (optional)” field. Click “Next.”
Here is an overview of the task’s settings. Please review it. Please click “Back” if you do not agree with this and make the changes to your liking. Click the “Finish” button if you agree.
That’s it. You will now see a pop-up at the time you set it up.
Your PC will restart in less than a minute as indicated in the pop-up.
- Using the shutdown -a command in the Run Command Box, you can cancel the restart after the pop-up window appears.
- Viewing a task is as simple as clicking “Task Scheduler Library” on the left. The task you created can be seen here.
- You can now edit the task by right-clicking on it and selecting “Properties.” Furthermore, you will find many options there, such as Security options, Settings, and Conditions. You can play with them if you want to.
- The task can be deleted by right-clicking it and clicking “Delete.” Click “Yes.”