To create a task that restarts your PC using Windows Task Scheduler, follow these steps:
-
Open Task Scheduler:
- Press
Win + R, type taskschd.msc, and press Enter.
-
Create a Basic Task:
- In the right-hand Actions panel, click on
Create Basic Task.
- Give the task a name (e.g., “Restart PC”) and a description if you want, then click
Next.
-
Set the Trigger:
- Choose when you want the task to start (e.g., daily, weekly, etc.), and click
Next.
- Set the specific time and date you want the task to run, then click
Next.
-
Set the Action:
- Select
Start a program, and click Next.
-
Program/Script:
- In the
Program/script box, type shutdown.exe.
- In the
Add arguments box, type /r /f /t 0. Here’s what these arguments mean:
/r tells the computer to restart.
/f forces running applications to close.
/t 0 sets the delay time to 0 seconds (i.e., immediate restart).
- Click
Next, then Finish.
- Ensure Proper Permissions:
- After creating the task, right-click on it in the Task Scheduler Library and select
Properties.
- Go to the
General tab and check Run with highest privileges.
By following these steps, you will have created a scheduled task to restart your PC at a specified time. If you need to fine-tune the schedule or conditions under which the restart happens, you can adjust the settings in the task’s properties after creating it.