How to Auto Restart Your PC

In this article, you can learn how to restart your computer once or repeatedly automatically.

Method #1

Launch Run Command Box.

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.

Method #2

Start Task Scheduler.

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” popup window. Click “Next.”

You can now set the repetition frequency of the task. I choose “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’s an overview of the task’s settings. Please review it. Please click “Back” if you disagree with this and make the changes to your liking. Click the “Finish” button if you agree.

That’s it. You will now see a popup at the time you set it up.

Your PC will restart in less than a minute, as indicated in the popup.


  • Using the shutdown -a command in the Run Command Box, you can cancel the restart after the popup 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.”

I hope this guide, “How to Auto Restart Your PC,” is helpful to you.

Thanks for reading.