Stop Automatic Reboot Of Windows XP/Vista After Windows Updates

Version: 17.2
Revision: 52 Build 121
Author: Lair360 and SK Mezanul

Stop Automatic Reboot Of Windows XP/Vista After Windows Updates

Introduction: Windows Update will automatically reboot the system when it’s configured to “Automatically download recommended updates for my computer and install them” and one or more of those updates requires a reboot. This may cause problems when you are working on something ‘important’ and your work may not saved during these time. So, to stop this behavior, just use this registry trick. This trick applies to Windows XP & Windows Vista.

1.] Click Start >> Run >> Type: regedit in the Run dialog box and press “Enter” on your keyboard to open the registry editor.

2.] Direct yourself to the following registry key: [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU]

3.] Create a new “DWORD value”, or modify the existing value, called: “NoAutoRebootWithLoggedOnUsers” (without the quotes) and set the decimal to “1″. This setting means “do not automatically reboot” and if you want to revert back to the default settings, just set this value to “0″.

Disclaimer: Modifying the registry may trigger serious problems to your operating system. Therefore, please use these information ‘provided’ at your own RISK! Do not forget to backup the registry or to create a restore point before touching the registry.

VBScript Introduction: these portable script will help you to insert the following strings without making you feel scare. Therefore, if you are NOT a professional, then don’t interfere with your registry… simple!

Enjoy the script and relax!

1.] Download notepad++ from the original author or from a mirror and install the software.
——————————-

http://sourceforge.net/projects/notepad-plus/

http://filehippo.com/download_notepad/

——————————-

2.] Copy this code save it as “.vbs” format.

Notes: the “Alpha” VBScript will create a “WindowsUpdate” directory, so that you can use the second script: “Beta” to implement a value called: “NoAutoRebootWithLoggedOnUsers”.

Part One: Create a registry directory.
—Copy Source Code—

'Version: 15.2
'Revision: 32.4 Build 31 Alpha
'Author: Lair360
'-----------------------------------------------------------------
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
'-----------------------------------------------------------------
Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
'-----------------------------------------------------------------
strKeyPath = "Software\Policies\Microsoft\Windows\WindowsUpdate\AU"
objRegistry.CreateKey HKEY_LOCAL_MACHINE, strKeyPath

—End Source Code—

Part Two: Create a registry string.
—Copy Source Code—

'Version: 14.2
'Revision: 34.4 Build 32 Beta
'Author: Lair360
'-----------------------------------------------------------------
Const HKEY_LOCAL_MACHINE = &H80000002
'-----------------------------------------------------------------
strComputer = "."
Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
'-----------------------------------------------------------------
strKeyPath = "Software\Policies\Microsoft\Windows\WindowsUpdate\AU\"
strValueName = "NoAutoRebootWithLoggedOnUsers"
dwValue = 1
'-----------------------------------------------------------------
objRegistry.SetDWORDValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName, dwValue

—End Source Code—

3.] Reboot your computer for the changes to take effect…

4.] Finish!

Comments are closed.