'Disable Windows Update

Dim WshShell, ObjShell, Message, M

Set WshShell = WScript.CreateObject("WScript.Shell")

If WScript.Arguments.length = 0 Then
Set ObjShell = CreateObject("Shell.Application")
ObjShell.ShellExecute "wscript.exe", """" & _
WScript.ScriptFullName & """" & " uac","", "runas", 1
Else

Message = "This script will Disable Automatic Updates." & vbCr & vbCr _
& "If you do not trust the source of this information, do not add it to the registry."  & vbCr  & vbCr _ 
& "Would you like to continue?"

M = MsgBox(Message, vbYesNo + vbInformation, "Paul's XP, Vista and Windows 7 Tweaks")
If M = 6 Then 

WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\WindowsUpdate\DisableWindowsUpdateAccess", 1, "REG_DWORD"
WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoWindowsUpdate", 1, "REG_DWORD"

Message = "Windows Automatic Updates are now Disabled!" & vbCr & vbCr _
 & "This script was downloaded from www.paulsxp.com."
MsgBox Message, 64, "Paul's XP, Vista and Windows 7 Tweaks"
End If
End If
