Showing posts with label Schedule Reboot in Server. Show all posts
Showing posts with label Schedule Reboot in Server. Show all posts

Monday, April 15, 2013

How to Configure Schedule Reboot in Server 2008

How to schedule Windows 7 or 2008 r2 restart or shutdown automatically
Create a .bat file 
1. Open new notepad, type c:\windows\system32\shutdown -r -f -t 10
      *For shutdown change -r  to -s
      
* -r : restart
* -s : shutdown
* -f : force all running application exit/terminate
* -t :specifies the countdown time(seconds) until the shutdown

2. Save the notepad as .bat file.
3. Go to Computer --> Manage --> right click Task Scheduler --> Create Task
4. In General, put a Task Name, set a user account running the task, configure for windows 7/windows server 2008 r2
5. In Triggers, click new
6. Set the schedule restart or shutdown time, click OK
7. In Actions, click new
8. Action as Start a program. Browse the created .bat file, click OK
9. Click OK.