December 23, 2012

Turn off auto-restart after windows update

It's sometimes annoying when I come to the office next morning and find my development environment (it's a virtual machine) restarted automatically without my permission.I install Windows 7 Ultimate as my operating system and by default it will restart the system automatically after the windows update has been done (although you may argue that I should've changed the default settings when I installed the OS at the beginning). But as a developer, you won't like being interrupted by this when you are in the flow. Here's how we can disable the auto-restart feature.
  1. Go to Run.., input gpedit.msc and click OK.
  2. Expand Computer Configuration-> Administrative Templates-> Windows Components-> Windows Update and you will see a setting called No auto-restart with logged on users for scheduled automatic updates installations in the right pane.
  3. Right-click on this setting and edit it.
  4. Select Enabled and click OK to take effect.
  5. (Optional) Repeat the above steps on the server hosting your virtual machine.

No comments: