Thursday, June 23, 2011

Schedule Auto Re-Boot of Windows Server 2008

This guide will help you to create a Task Schedule to Shutdown or Restart Windows Server Automatically. First, you have to download PSshutdown from Microsoft. Then create a Task Schedule:






If your schedule doesn't work, you can add one more argument "-accepteula" at the end. Or you just want to restart server then replace "-s" with "-r".

[tip] Prevent Windows Automatic Updates from rebooting your computer

Here's how to prevent Automatic Update from rebooting your machine:
  1. Start -> Run
  2. Type: gpedit.msc
  3. Expand Local Computer Policy / Computer Configuration / Administrative Templates / Windows Components / Windows Update
  4. Double-click "No auto-restart for scheduled Automatic Updates installations"
  5. Select "Enabled", then OK. Close the Group Policy configuration program.
Fine print:
  1. You need Administrator priveleges to make this setting.
  2. Some people complained that Windows ignored the "no auto-restart" setting for the WMF patch. Potentially a ID 10T error, though. 
Group Policy settings to disable Automatic Updates from rebooting computer