Can anyone tell me if you can get the SP versions by scripting. I need the SP
versions for office?

RE: Service Pack version by twin

twin
Thu Oct 07 03:43:10 CDT 2004

do you need the versions of Office-SP or Windows-SP ?
if Windows-SP then the following script works for a Remote-Computer:
Syntax: "scriptname.vbs Remote-Computer"


Set objArgs = WScript.Arguments
For i = 0 to objArgs.Count - 1
objArgs(i)
strComputer = objArgs(i)
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
Wscript.Echo objArgs(i) & " has ServicePack " &
objOperatingSystem.ServicePackMajorVersion _
& "." & objOperatingSystem.ServicePackMinorVersion
Next
Next





"NickB" wrote:

> Can anyone tell me if you can get the SP versions by scripting. I need the SP
> versions for office?
>

RE: Service Pack version by NickB

NickB
Thu Oct 07 17:51:07 CDT 2004

Thanks twin, but it is Office I am looking for, and any other Microsoft
packages that anyone might know. I could most probably find it in the
registry somewhere, but I was wondering if it was en exposed object?

"twin" wrote:

> do you need the versions of Office-SP or Windows-SP ?
> if Windows-SP then the following script works for a Remote-Computer:
> Syntax: "scriptname.vbs Remote-Computer"
>
>
> Set objArgs = WScript.Arguments
> For i = 0 to objArgs.Count - 1
> objArgs(i)
> strComputer = objArgs(i)
> Set objWMIService = GetObject("winmgmts:" _
> & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
> Set colOperatingSystems = objWMIService.ExecQuery _
> ("Select * from Win32_OperatingSystem")
> For Each objOperatingSystem in colOperatingSystems
> Wscript.Echo objArgs(i) & " has ServicePack " &
> objOperatingSystem.ServicePackMajorVersion _
> & "." & objOperatingSystem.ServicePackMinorVersion
> Next
> Next
>
>
>
>
>
> "NickB" wrote:
>
> > Can anyone tell me if you can get the SP versions by scripting. I need the SP
> > versions for office?
> >

Re: Service Pack version by Torgeir

Torgeir
Fri Oct 08 01:53:38 CDT 2004

NickB wrote:

> Thanks twin, but it is Office I am looking for, and any other Microsoft
> packages that anyone might know. I could most probably find it in the
> registry somewhere, but I was wondering if it was en exposed object?
Hi

Not the easiest thing in the world I'm afraid:

http://groups.google.com/groups?selm=OJh61jhdEHA.3016%40tk2msftngp13.phx.gbl


--
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

Re: Service Pack version by Le

Le
Fri Oct 08 17:19:28 CDT 2004


"NickB" <NickB@discussions.microsoft.com> a écrit dans le message de news:
AFCBD35A-E10C-474D-B650-DD043C58141C@microsoft.com...
> Can anyone tell me if you can get the SP versions by scripting. I need the
SP
> versions for office?


read by bvscript registry key ( for word 2000 Sp1 on my PC)

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserD
ata\S-1-5-18\Products\C04010001E872D116BF00006799C897E\InstallProperties\Ver
sion

Bye have good WE

>