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 you have your system 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 is not saved. So, to stop this behavior use the following registry trick. This trick applies to Windows XP and 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 can cause serious problems that may require you to reinstall your operating system. Use the information provided at your own risk. Do not forget to backup the registry or to create a restore point before any modification.

VBScript Introduction: these portable script will help you to insert the following registry – strings without making you feel worry! Its a a little “VBScript” for you to use without interfering with your registry…

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 into your notepad and save it as a “.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.