{"id":130,"date":"2007-11-17T13:19:54","date_gmt":"2007-11-17T11:19:54","guid":{"rendered":"https:\/\/www.optimiced.com\/en\/2007\/11\/17\/how-to-disable-automatic-windows-restart-dialog-box-after-windows-update\/"},"modified":"2010-06-09T16:34:19","modified_gmt":"2010-06-09T13:34:19","slug":"how-to-disable-automatic-windows-restart-dialog-box-after-windows-update","status":"publish","type":"post","link":"https:\/\/www.optimiced.com\/en\/2007\/11\/17\/how-to-disable-automatic-windows-restart-dialog-box-after-windows-update\/","title":{"rendered":"How to disable automatic Windows restart dialog box after Windows Update"},"content":{"rendered":"<p>You know the scenario:<\/p>\n<p>Windows XP updates automatically, and then a small box appears, which gives you two choices:<\/p>\n<ol>\n<li>Restart the computer! (now)<\/li>\n<li>Restart the computer! (later)<\/li>\n<\/ol>\n<p>The problem is, even if you choose the &#8216;later&#8217; option, the same annoying dialog box will pop-up after 10 minutes or so and you&#8217;ll have to dismiss it again, then again, then again&#8230; Finally, it will <em>inform you<\/em>, that the computer will be automatically restarted in <em>5 minutes<\/em>, no matter what you do currently &#8212; the only choice you have at this moment is to postpone the restart a little, but the box will come again and again&#8230;  And if you&#8217;re in the middle of something, and cannot restart <em>right now<\/em>, then what?<\/p>\n<p>Luckily, there&#8217;s a solution, which I&#8217;ve found by accident, while browsing the Internet with no specific goal (you may read about this solution in a lot of places, actually). In short, your options are the following:<\/p>\n<h3>Option One<\/h3>\n<p>Stop the Automatic Update Service for the moment.<\/p>\n<p>To do so, open the &#8216;run&#8217; dialog box (shortcut: Windows key + R), type &#8216;cmd&#8217; (without the quotes, of course) in it and hit ENTER. The command line will open.<\/p>\n<p>Then use the following command to stop the service:<\/p>\n<p><code>net stop wuauserv<\/code><\/p>\n<p>Alternatively, you may also use:<\/p>\n<p><code>net stop \"automatic updates\"<\/code><\/p>\n<p>Or:<\/p>\n<p><code>sc stop wuauserv<\/code><\/p>\n<p>All of these do one and same thing: they stop the Automatic Update Service and with it, the annoying box, which prompts continuously you to restart the computer.<\/p>\n<p>Then you may restart the computer at whatever time you like:-)<\/p>\n<p><em>Note: The Automatic Update Service will be automatically started at the next Windows reboot, so don&#8217;t worry, you won&#8217;t disable the service itself!<\/em><\/p>\n<p>Now, to the next option:<\/p>\n<h3>Option Two<\/h3>\n<p>You may disable this dialog box, prompting you to restart the computer after the Windows updates are applied, for good:)<\/p>\n<p>How?<\/p>\n<p>Again, open the &#8216;run&#8217; dialog box, and type in it &#8216;gpedit.msc&#8217;, then hit ENTER. This will open the Group Policy editor.<\/p>\n<p>Locate in it:<\/p>\n<p><code>Local Computer Policy &rarr; Computer Configuration &rarr; Administrative Templates  &rarr; Windows Components &rarr; Windows Update<\/code><\/p>\n<p>There are two options there which will affect achieve the effect you&#8217;re after.<\/p>\n<p>The first one is: <strong>No auto-restart for schedule Automatic Updates installations<\/strong><\/p>\n<p>Right-click it, select &#8216;Properties&#8217;, and configure it.<\/p>\n<p>The second one is: <strong>Re-prompt for restart with scheduled installations<\/strong><\/p>\n<p>Right-click it, and set the time interval to something very long, like 720 minutes (12 hours).<\/p>\n<p><em>Note: The maximum number of minutes you can set up there is 1440 minutes, or 24 hours, but this should be enough.<\/em><\/p>\n<p>That&#8217;s it. No more annoying boxes popping up everywhere and urging you to restart <em>NOW<\/em>:)<\/p>\n<h3>What next?<\/h3>\n<p>Finally, let me quote <strong><a href=\"http:\/\/blogs.msdn.com\/tim_rains\/archive\/2004\/11\/15\/257877.aspx\">Tim Rains<\/a><\/strong> on what might be the issues when disabling this auto-restart dialog box:<\/p>\n<blockquote><p>IMPORTANT: If you choose to configure your system not to reboot when a security update which requires a reboot is installed, you are taking a huge risk.  The fixed code is not actually loaded (in memory) by the system until after the reboot.  i.e. the old, vulnerable code is still running until a reboot is completed.  If you do not reboot the system for whatever reason (you didn\u2019t realize a security update was automatically installed, you want to wait for a regular maintenance window, you forget, you were on vacation, etc.) your system will still be vulnerable.  You also risk system stability by delaying a required reboot.  When some files that are in use are replaced but not loaded, and other files that are not in use are replaced, you can get into a mixed binary situation. Depending on the binary, there may be conflicts that cause system instability.<\/p><\/blockquote>\n<p>Also, here should be noted that if you have the Automatic Windows Update service disabled by default (System Properties &rarr; Automatic Updates &rarr; Turn Off Automatic Updates) and do your updates manually (via Microsoft Update or Windows Update), then this dialog box won&#8217;t bug at all you after updates are installed, because you have decided to install them manually.<\/p>\n<p>Other interesting resource for you might be this one:<\/p>\n<p><a href=\"http:\/\/www.codinghorror.com\/blog\/archives\/000294.html\">http:\/\/www.codinghorror.com\/blog\/archives\/000294.html<\/a><\/p>\n<p>There are a lot of insightful comments below the main article &#8212; you may find in them, for example, what to do if you&#8217;re running a copy of Windows XP Home Edition, which doesn&#8217;t have a Group Policy Editor; what are the differences between the <strong>No auto-restart for schedule Automatic Updates installations<\/strong> and <strong>Re-prompt for restart with scheduled installations<\/strong> and how to set them up in the best possible way, etc.<\/p>\n<p>I&#8217;ve created this article more as a note to myself, so I can reference to it later, when needed:)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You know the scenario: Windows XP updates automatically, and then a small box appears, which gives you two choices: Restart the computer! (now) Restart the computer! (later) The problem is, even if you choose the &#8216;later&#8217; option, the same annoying dialog box will pop-up after 10 minutes or so and you&#8217;ll have to dismiss it&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40,38],"tags":[],"class_list":["post-130","post","type-post","status-publish","format-standard","hentry","category-software","category-tips-n-tricks"],"_links":{"self":[{"href":"https:\/\/www.optimiced.com\/en\/wp-json\/wp\/v2\/posts\/130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.optimiced.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.optimiced.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.optimiced.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.optimiced.com\/en\/wp-json\/wp\/v2\/comments?post=130"}],"version-history":[{"count":1,"href":"https:\/\/www.optimiced.com\/en\/wp-json\/wp\/v2\/posts\/130\/revisions"}],"predecessor-version":[{"id":1075,"href":"https:\/\/www.optimiced.com\/en\/wp-json\/wp\/v2\/posts\/130\/revisions\/1075"}],"wp:attachment":[{"href":"https:\/\/www.optimiced.com\/en\/wp-json\/wp\/v2\/media?parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.optimiced.com\/en\/wp-json\/wp\/v2\/categories?post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.optimiced.com\/en\/wp-json\/wp\/v2\/tags?post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}