This guide will help you to create a Task Schedule to Shutdown or Restart Windows Server 2008 or 2008 R2 Automatically.

Go to the Task Scheduler and Create a new Basic Task,

Do whatever to complete, go to the properties and Actions,

shutdown -r -f -t 10

Where:

  • -r restarts
  • -f  forces processes to terminate
  • -t 10 waits 10 seconds before shutdown