Tip: Disable Auto Restart in Windows Update
Ever since Microsoft release Windows XP Service Pack 2, the company keeps emphasize the fact that you should enable Automatic Updates on your computer.
Automatic updates are usually a good thing but there is a serious problem with it.
Sometimes updates need to restart the computer to finish the installation. Until SP2 Automatic Updates would not restart your computer automatically. But this is not the case with SP2.
Once you scheduled Automatic Updates to be installed (by default at 03:00 AM), if the update requires restart Windows will notify you that it needs to restart. If you are not logged in and do not restart within 5 minutes, Windows will automatically restart your computer.
This behavior can cause a lot of problems. Documents you left open and did not save will be lost, downloads you started that have not finished will be terminated, and even hard disk maintenance like defrag that is working will get terminated, which might cause lost of data.
Unfortunately Windows XP Home users can not do much to change this behavior, except saving all the data before going to sleep or disabling the automatic updates.
On the other hand Windows XP Pro users can tell Windows never to restart the computer automatically. In order to do that follow these steps.
- In the Start Menu go to Run type “gpedit.msc” and press Enter
- Now a Group Policy editor will open. In this window navigate to: Computer Configuration -> Administrative Template -> Windows Components -> Windows Update
- Double click on No auto-restart for scheduled Automatic Updates installations
- In the settings window Choose Enabled and click OK
- Close Group Policy Editor
The next time Windows updates your system it will not restart the computer automatically, but will notify you that restart is needed in order to finish the installation.
Update
Home users can try the following:
Go to registry editor and navigate to the following registry key:
HKEY_LOCAL_MACHINE \Software\Policies \Microsoft\Windows \WindowsUpdate\AU
Change the “NoAutoRebootWithLoggedOnUsers” DWord value to the required number.
0 = False (Allow auto-reboot)
1 = True (Disallow auto-reboot)











(10 votes)
RSS Feeds 



June 22nd, 2005 at 6:00 pm
THat’s a great thing to add to a GPO. But the new XPSP2 restart now nag screen is very annoying.
July 13th, 2005 at 8:21 am
Thanks for the info. This tip was really helpful
September 13th, 2005 at 8:34 pm
Thanks for this tip, it is really useful because it works on Windows Server 2003 as well.
I run my own web server at home, and when it installs updates, it would restart automatically, causing my website and IRC server to be offline until I had remembered about it and restarted Apache, MySQL and UnrealIRCD
As I am typing this, the nag box has just come up asking me to restart it, so I will leave it and see if it restarts.
October 27th, 2005 at 7:01 am
Wow, great tip, thanks!
November 5th, 2005 at 3:28 pm
XP got me again with this last night - lost several hours worth of open work. It’s absolutely insane that this is designed behaviour. There may as well be a check box that says “randomly toss whatever I’m working on”. Aargh.
November 5th, 2005 at 3:29 pm
…and one more thing: I started a trouble ticket about this issue with Microsoft but gave up after several rounds of email trying to explain that the designed behaviour is wrong and that it isn’t a “bug” per se.
December 14th, 2005 at 7:22 am
This is ridiculous. I’ve lost a lot of work and my most recent backup was interrrupted because Microsoft feels it has more important things to do with my computer than I do.
December 20th, 2005 at 5:15 am
I know there is a way to solve this annoying issue with the home edition too (http://support.microsoft.com/?kbid=555444). However, it seems it varies between different systems and subversions (I personally couldn’t find the mentioned registry key on my system). If anyone can shed some more light on this it will be much appreciated.
December 27th, 2005 at 9:09 am
Go to registry editor and navigate to the following registry key (if you don’t have this key, you’ll need to create it as a new DWord key):
HKEY_LOCAL_MACHINE \Software\Policies \Microsoft\Windows \WindowsUpdate\AU
Change the “NoAutoRebootWithLoggedOnUsers” DWord value to the required number.
0 = False (Allow auto-reboot)
1 = True (Disallow auto-reboot)
Save and restart Windows Operating system.
January 6th, 2006 at 7:00 pm
Completely ludicrous software design. However, thanks for revealing the buried mystery workaround that they somehow forgot to mention.
February 12th, 2006 at 3:16 am
Yeah, the update just screwed me over, evidently some files were not closed properly and the disk got kinda screwed up. its 3:13 am and I was coding on my desktop when i noticed my laptop was shutting down, I couldn’t stop it, and upon rebooting it gave me a missin/corrupt file error. So I’m gonna have to restore something, but this issue really needs to be fixed by Microsoft. Er….Off to sleep because I’m too angry to deal with this. ARGH! Thanks for the fix, I’ll be implementing at ASAP on all my machines.
February 16th, 2006 at 3:30 am
damnn.. i thought i was the only one with this problem… but thankfully, today i googled it and i found an asnwer!!
February 16th, 2006 at 3:38 am
[…] This one is specifically for XP Pro SP2, and if you have never tried the group policy editor this is a good chance to be introduced. […]
February 16th, 2006 at 5:45 am
Can’t thank you enough for this!
Although it won’t turn back the clock on all the Photoshop work I lost last night (good one MS) it will certainly stop it re-ocurring in the future.
James
February 16th, 2006 at 5:48 am
[…] Disable Auto Restart in Windows Update […]
February 17th, 2006 at 2:44 am
Thanks….. 2-3 times a week when I came back to office I had to pull my hairs out because of this bug/feature…. Some critical downloads that were supposed to be completed in the night were not completed because Microsoft thought my computer had to be restarted….Who are they idiots to think so???
February 17th, 2006 at 6:44 am
buy a Mac instead
February 18th, 2006 at 2:32 am
ARRGGH lost about 3 hours worth of work in PS. saved a jpeg but just somehow didn’t hit ctrl+s properly before going to bed. this is the most stupidly programmed “feature” i’ve encountered and I can’t find any information about a hidden cache where my open files might have been saved. this is just complete crap.
March 24th, 2006 at 2:14 pm
THX, this help me a lot!!
April 19th, 2006 at 8:10 pm
[…] This means if you aren’t constantly at your computer it will restart itself, losing any unsaved documents and interrupting any ongoing processes, potentially causing data loss. This is absolutely horrible software design. Thankfully, I found a fix. If you are using Windows XP Home, you are screwed, but if you are using Windows XP Professional, follow these steps: […]
April 22nd, 2006 at 2:59 pm
This is Microsoft saying “Our users are too stupid to know when to restart their computers.” Thank you, Mr Gates, for your vote of confidence.
And yet, I only reboot my linux systems when the power goes out.
April 22nd, 2006 at 3:03 pm
by the way… I like how if you happen to be typing when that window pops up… The ‘restart now’ button is defaulted, so if you hit the [enter] or [spacebar] keys… goodbye work!
(Again, really designed with the user in mind)
April 26th, 2006 at 3:29 am
I hate you microsoft. 20 pages. Term paper due tomorrow. Gone. Die, Microsoft.
April 26th, 2006 at 6:22 am
Hey guys, I got a fix. When this window POPS up, just say RESTART LATER, and then go to Control Panel, and choose Automatic Updates, and then turn off automatic updates. This will stop it dead in its tracks and it will never update automatically anymore, plus you do not have to reboot. So no need to edit registry or do any of the other stuff above. Hope this helps.
Johnny
May 11th, 2006 at 4:19 am
THANKS!
I HATED that auto-restart, enough to use lots of capital letters. Now I can write, research, and game uniterrupted at any hour, without having to actively babysit my PC. What a relief! People like you help make computers more useful to everyone. Downloads of a few hundred MB or more used to be a hassle just because of the updating process. Problem solved. One quick google search got me to you, and I should have done it months ago.
May 12th, 2006 at 7:02 am
awesome tip ..thanks so much Johny…
May 13th, 2006 at 3:33 am
what a relief! Thanks Johnny! I have this massive pdf form that I’ve partly filled out but can’t save my changes in (thanks a lot for that useful feature, buttheads at Adobe), and I just barely managed to miss losing it all due to this auto-restart nonsense.
May 17th, 2006 at 11:09 am
Anyone know how to duplicate this “fix” in Win2K? It doesn’t seem to have the same options in the Group Policy editor as Pro.
June 12th, 2006 at 10:14 am
Windows Rebooting… By Itself!
June 15th, 2006 at 11:27 am
Thanks so much for this easy and quick solution to my problem. My accounting software will crash if rebooted without closing it and fortunatetly it didn’t this time, but I have changed the settings as you suggested to prevent it in the future. Thanks.
Rich
June 16th, 2006 at 6:54 am
Thank you so much. Was safety-saving a MASSIVE digital drawing (20 hours of work so far) and looked away at the wrong time. I save every time I lift the pen. In the middle of the save process Windows rebooted and I am unable to open the file on any of my computers now, it’s corrupt.
Instead of the bearable loss of five minutes’ work it’s all down the toilet just because I tried to be careful. Jerks!!! I’m getting roughly $50/hr for this piece– Microsoft should reimburse me for all of the lost time!
June 16th, 2006 at 1:26 pm
Thanks a million for this tip!!! And a zillion curses against MSFT - what lunacy on their behalf - sadly unsurprising. THANKS
June 16th, 2006 at 5:39 pm
[…] Thank god for this tip […]
June 28th, 2006 at 1:30 pm
Well, like many of you here I lost lot of works too until I found this web site. But at least I know what cause my computer to restart to seek for help. Many people out there have no glue so they can’t be help.
Maybe we need to sue Microsoft, so they can fix this problem and prevent further loss of works from many Windows user around the world.
Thanks for this tip.
June 30th, 2006 at 7:52 am
[…] Anyone else have the problem where windows will install and update while you’re away and then automatically re-start your computer? Well, that really sucks, because then I lose anything I was working on! I’ll leave webpages open that aren’t necessarily ones I want to bookmark, but I do want to look at again, and such. I finally found instructions to shut that feature off, so it’ll still automatically update, but won’t force-restart my PC without my prior expressed written consent! Head over here to Avirans Place and follow his instructions…very simple, and it won’t shut down your PC while your rendering out that complex particle system, or downloaded the entire Vivid collection on bittorrent. […]
June 12th, 2007 at 11:53 pm
@Pink
We should all file a class action lawsuit. Pink, if you charge $50/hr then you can very well sue MS for lost wages & damages. This is very actionable. Let’s hit them where it counts - in the pocket book. That will wake them up and they will think twice next time they surreptitiously include a unproductive ‘feature’.
November 15th, 2007 at 4:35 am
i have xp at home version and a few months ago i used a command line to stop the restart nag.. anyone know what the command line is?
i know it exists and works on xp home i just cant find where i put the command line
December 13th, 2007 at 11:01 pm
Realy weird behaviour of Windows. What is most crapy about this, that it even don’t leave any traces for recovery of autosaved files in MSWord. Strange that M$ didn’t fixed that problem for so many years.
December 16th, 2007 at 6:50 pm
ONE WORD: UNIX
April 9th, 2008 at 8:38 am
this was perfect, thank you!
May 29th, 2008 at 6:35 am
Ahhh! Satisfaction guaranteed! Went to feed the cats and lost what I was working on. Thanks for the solution to a pseudo-god blunder!
June 14th, 2008 at 3:19 am
Thank you lot. Really you are excellent helpful to us. May God bless you and pray for your enormous growth.
September 11th, 2008 at 4:13 am
I just spent 4 hours working on a paper that’s due tomorrow evening and lost all of those hours because of this. All I did was take a shower and *poof*. I was hoping it would have saved it in some sort of temporary file.
September 11th, 2008 at 2:15 pm
I solved the problem at home by switching to Ubuntu Linux (wow!). Unfortunately, my work computer is still XP and I just lost an hour of billable time to this Microsoft nonsense. Thank you for the easy fix so it won’t happen again.
October 15th, 2008 at 6:36 am
This setting is useless for servers management. What if you have 50 servers that you want to update automatically over night? Are you going to keep logged on each one? Another Bill’s ridiculous idea.
January 27th, 2009 at 2:19 am
thank you so much!!! that’s been driving me insane for years!
March 9th, 2009 at 8:03 pm
For Home Edition you will need to install gpedit.msc.
This is no small task but directions are here:
http://bogdan.org.ua/2007/11/15/windows-xp-he-home-edition-gpedit-msc-group-policy-editing-via-registry.html
March 18th, 2009 at 2:57 am
Thanks! ^^
April 17th, 2009 at 6:44 am
Excellent tip… Auto reboot is simply inexcusable - without any user input.
Seems that I need to re-login (??) Although, I did a GPupdate.exe /force and haven’t gotten message (Yet?).
But, I’m completely afraid to go to sleep (3:30am) because I started a 90min file xfer from NAS, and I need this in the morning!
April 28th, 2009 at 4:18 am
Thanks for this great piece of info… it almost caught me last nite…
was lucky enough that my job completed just before the HELL and the HEAVEN collided… grrrr…
June 12th, 2009 at 10:54 pm
Thanks very much, I have always hated the auto-reboot and now it won’t bother me again
July 19th, 2009 at 1:12 am
thx
October 12th, 2009 at 4:34 pm
funny how many of the ‘thank you’ posts are made at 3:30 AM. Thank you for this info!
October 16th, 2009 at 10:00 pm
Thank you. very helpful
November 11th, 2009 at 8:14 pm
Thanks a lot these information were very helpful.
November 12th, 2009 at 10:22 am
Very helpful. Thanks.
November 16th, 2009 at 11:32 pm
tnx for the info
I rly hope windows comes with a striped version
Windows - bullshit
November 25th, 2009 at 11:50 am
Ironically, Windoze is too stupid to know how to shut down certain applications when you DO WANT to reboot the system. Windows either reboots when you don’t want, or it doesn’t when you do want. Okay, so maybe I’m exaggerating a little, I remember once when Windows did what I wanted.
Time for Linux or a Mac, I think…
December 9th, 2009 at 7:37 pm
Its funny how people just accept these problems. It’s even more funny these people don’t expand their experiences. All of them stuck in their little Windows box and no way out. Only to be controlled by their computer and the company that doesn’t know the different between a computer and a fish bowl. You can’t pile crappy code on top of crappy code. Millions of lines of crap equal one big steamy heap of Windows excrement.
People need to get away from ignorance and discover a real and productive operating system, which at this point of time is anything compared to Windows. Hmmm, lets see Windows Vista, oh wait but Windows 7 will be better… Fool me once shame on you, Fool me twice shame on me… In this case fool me everytime. So shame on me and everyone else who continues to use such a debilitating operating system.
All you have to do is read the comments on this page to realize, or any other Windows problem help page for that matter. It just makes sense…
And Dave, “Time for Linux or a Mac, I think…”
I couldn’t agree more. Life is easy without Windows.
March 7th, 2010 at 11:57 am
thanks for this tips..