On Error Resume Next Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.RegWrite "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU\NoAutoUpdate", 0, "REG_DWORD" WshShell.RegWrite "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU\AUOptions", 3, "REG_DWORD" Message = "Automatic Updating has been enabled." X = MsgBox(Message, vbOKOnly, "Done") Set WshShell = Nothing