Zach Burkett - City of Austin wrote:
> Anyone experienced Windows Update installing the SP2 for XP despite
> the registry hack to block it? The install of the SP with the
> registry hack was not suppose to expire until mid April of 2004?
Hi
Never heard about this issue.
To verify that you have applied the registry value correctly,
please run this VBScript (put it in a .vbs file):
'--------------------8<----------------------
Const HKLM = &H80000002
strComputer = "." ' use "." for local computer
Set objReg = GetObject("WinMgmts:{impersonationLevel=impersonat e}!//" _
& strComputer & "/root/default:StdRegProv")
strKeyPath = "SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate "
strValueName = "DoNotAllowXPSP2"
objReg.GetDWORDValue HKLM, strKeyPath, strValueName, intValue
If intValue = 1 Then
WScript.Echo "SP2 blocker is in place"
Else
WScript.Echo "SP2 blocker is NOT in place"
End If
'--------------------8<----------------------
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx