Control WinXP Automatic Restart

Stopping automatic WinXP Software Updater Restarts

There's a great little feature in WinXP SP2 to make sure that security fixes are installed and active as soon as possible. It decides for you that it's going to reboot your machine to finish off the installation.

Now I'm all for making sure a user is as protected as they can be. But the final control should always rest with the user. Sadly the WinXP SP2 dialogue undermines that... rather than fail safe it puts up a count-down timer and if you don't say "no" it reboots anyway.

It happened to me the other day, and it's not very smart. No realising you have open documents you've been working on that need to be saved (Okay, I know Word auto-saves every 10 mins, and Outlook puts things into the draft folder... but the text editor I was using to hack some late night, fairly urgent, fixes to a site isn't that clever). I took a call from a client to discuss some last minute changes and, as I'm prone to, I got up and wandered outside with the phone (how did I ever think in a world rules by wired phones!). 30 minutes later I sat down at my..... blank.... desktop. All the windows had shut. I was logged out of Messenger. And Skype. And the web pages I had open meaning to add to del.icio.us or stumble-upon were gone. My download of a large CSV that had to get burnt to CD-Rom and shipped out that afternoon.... needed restarting.

At first I assumed a crash, or a power glitch (not likely with a laptop of course) but looking at one of the other machines in the office to see the insidious count-down dialoge made me realise what had happened. And I wasn't happy.

So I did a bit of digging. While the obvious approach is simply to turn off automatic updates I'm pretty lazy and I know I won't remember to check regularly enough and something will slip through. There has to be a better way. Turns out there is

A simple registry edit (or in this case adding a new key) stops the automatic reboot in the even of there being an active/logged on user on the machine: 

In [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU] Create a new DWORD value under this key called "NoAutoRebootWithLoggedOnUsers" and set it to the number one.

Sadly it takes one more reboot to enable it... but it's worth it to avoid pain later on! 

... and put a stop to the nagging dialogues as well

Turns our that there's another really great key that lives in the same are of the registry. Sometimes after an update Windows wants to reboot. And it keeps popping up that really annoying nag window every ten minutes. Well, you can adjust the frequency or even turn it off totally. Add a DWORD called "RebootRelaunchTimeoutEnabled" and set it to zero to disable it or set the value to 1 and create an entry called "RebootRelaunchTimeout", where the value is the time between reminders in minutes (maximum of 1440)

Note: As with any other registry edit you can really screw with your machine. If you don't know what you're doing, don't take backups and double-check  before hitting enter.... you could end up in a lot of trouble - maybe not today.... but you will!

WindowsXP Pro, Server and Vista users can take advantage of the Group Policy editor to achive these things as well - see here.

 

More by this Author

  • Optimising SQL Server (or should it be Optimizing)
    1

    There are a lot of tricks to effective SQL tuning. Both developers and DBAs don't like to share control, but there are a number of strategies that can have very effective results without compromising integrity or...


2 comments

JR 6 years ago

Thanks Microsoft, I lose days of work in yet to be saved files because Microsoft decides to restart the computer on its own when I'm not looking. If they had saved all those files for recovery it would be different but I suppose if you are arrogant enough you don't really care about anything but yourself!!!!


Offbeatmammal 6 years ago

@JR

why would you go days without saving? Power cuts happen and it doesn't amtter what OS you're using... you'd still be screwed!

The Shutdown process in Windows fires a specific event that applications are supposed to listen for, and save your work. If they're not doing that they you should also let them share the blame

    Sign in or sign up and post using a HubPages Network account.

    0 of 8192 characters used
    Post Comment

    No HTML is allowed in comments, but URLs will be hyperlinked. Comments are not for promoting your articles or other sites.


    Click to Rate This Article
    working