Windows Tip: Preventing unplanned reboots

May 5, 2008, 12:28 PM —  ITworld.com — 

Recently I got the dreaded five minute countdown to automatic reboot when some critical fixes had been downloaded by my computer from Microsoft Update and automatically installed. And yes, it happened when I was pulling an all-nighter at work (remember that Automatic Updates is configured by default to check for available updates at 3:00 am every night). Unfortunately, I had a dozen or so applications running at the time, including some running within a virtual machine in Virtual PC! So I frantically saved my work in my guest machine apps, then saved my guest machine's state, then saved my work on all my host machine apps. I managed to beat the shutdown timer by a whopping 7 seconds, yikes!

This got me thinking. I like the "set it and forget it" aspect of having AU automatically download and install updates when they become available, mainly because I'm a procrastinator. Unfortunately, things that are automatic can sometimes get in the way of things that have to be done manually. So I thought I'd check to see if Group Policy had an answer for this, and I found the following policy:



Computer Configuration\Administrative Templates\Windows Components\Windows Update\Delay Restart for Scheduled Installations


This policy controls the restart timer, whose default value is 5 minutes, and you can increase this up to 30 minutes to give yourself more time to save your work before a reboot happens. And if your computer belongs to a workgroup, you can do the same by modifying the following registry value:



HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\RebootWarningTimeout


But what if you're having a coffee break at 3:00 am so you can pick a new CD to listen to? I used to do that often before I switched to decaf (something I will never regret). In that case, you're better off simply selecting the "Download updates for me, but let me choose when to install them" option on the Automatic Updates item in Control Panel, and see a psychiatrist to find out the root cause of your tendency to procrastinate. And of course you can also configure this option using Group Policy or by modifying the registry accordingly, see here for details.

 

ITworld.com

I like it!
Post a comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
Free books

Essential JavaFX
Get started building rich Web apps quickly with an introduction to the power of JavaFX key features -- scene node graphs, nodes as components, the coordinate system, layout options, colors and gradients, custom classes with inheritance, animation, binding, and event handlers.Enter now!

The Nomadic Developer
Consulting can be hugely rewarding, but it's easy to fail if you are unprepared. To succeed, you need a mentor who knows the lay of the land. Aaron Erickson is your mentor, and this is your guidebook. Enter now!

Featured Sponsor

AISO founders envisioned a Web hosting company that was environmentally friendly. While the company employed energy-efficient innovations like solar panels, its infrastructure produced unacceptable power and cooling requirements. Find out how AISO leveraged AMD technology to overcome their challenge in this case study white paper.

In this whitepaper, Scalar explores the opportunity to change the landscape with respect to mission critical databases built around Oracle. Leveraging technologies such as Linux, high-end commodity processing power and Oracle RAC technology to architect, design, build and maintain database infrastructure that delivers maximum availability, reliability and performance at a fraction of traditional cost.

On a typical day, weather.com, the Web site for The Weather Channel in Atlanta, serves up between 15 million and 20 million page views. But in September 2004, when back-to-back hurricanes ransacked Florida, the peak traffic on one day more than tripled: over 70 million page views by more than 7 million unique visitors. Read the full success story now.

Marketplace