Press Start, and in the search box type “Task Scheduler.” Atop your list of choices will be the Task Scheduler. Click it.
Click the Action menu and then select Create Basic task.
Choose a name for the task (like AutoReboot), type it in the Name box and click Next.
Select Daily (if you want a daily reboot) and click Next
Type the time you want to restart the computer, set recurrence to your liking, and click Next.
Select Start a program and click Next.
Click Browse and navigate to %SystemRoot%\System32 (that’s going to be C:\Windows\System32 for most people). Find the file named Shutdown (.exe) and click Open. Type /r /f /t 0 in the Add arguments (optional) (/r restart /s shutdown /l logout) box and click Next.