Re: How to determine whether SP2 (OEM or Upgrade) is installed?

From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 11/02/04


Date: Tue, 02 Nov 2004 13:01:18 +0100

Theosophe74 wrote:

> My company is blocking VPN access to their network because the
> CyberGatekeeper software they're using has a rule that says that I
> don't have XP SP2 installed. But I do have it installed as part of my
> OEM XP software from Dell (received with a new computer).
>
> Their software is currently looking for the registry key:
>
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB811113
> Type="Service Pack"
>
> That may work for users who have upgraded from XP to XP SP2, but what
> should their software be searching for to determine whether SP2 has
> come pre-installed on a user's machine?
>
> Is there any check that takes into account both scenarios?
Hi

Yes:

Under the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\
the value CSDVersion (REG_SZ), SP2 is installed if the value is
"Service Pack 2"

Under the registry key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows\
the value CSDVersion (REG_DWORD), SP2 is installed if the value is
512 (decimal)

-- 
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/scriptcenter/default.mspx


Relevant Pages

  • Re: ATTEN: John Eddie~Is This true~All should read!!!
    ... agreement, then how can you trust their reputation to leak accurate ... that has erupted in the Stationery community with regards to Scripted email ... will no longer work in OE SP2. ... if someone can reliably indicate what stationery / scripting ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress.stationery)
  • Re: ATTEN: John Eddie~Is This true~All should read!!!
    ... Just trying to bring you up to date on what is behind this eruption of hysteria within ... the Stationery community the past couple of weeks. ... > will no longer work in OE SP2. ... > this group) that stationery and scripting have in OE messages. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress.stationery)
  • Re: WMI security, XP to XP
    ... I had put SP2 on the test Pc ... > Newsgroups: microsoft.public.win32.programmer.wmi ... > Subject: ImpersoantionLevel other than impersonate ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.win32.programmer.wmi)
  • Re: About Windows 2000 Service Pack
    ... I just got an email from eWeek with a link to an article about XP SP2 IE ... "Microsoft Changes Its Tune on Porting SP2 Fixes" ... Was this done to reduce the complexity for Windows 2000 SP5? ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.windows.server.general)
  • Re: SP2 automatic update with applications still running.
    ... > background before you add any windows updates. ... Even the full version of SP2 ... > What I understand is that automatic updates will automatically update on a ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.windowsxp.general)