Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Audit Script: Windows Service Pack 2 Issue

Reply
 
Old 10-26-2009   #1 (permalink)
Rob-S


 
 

Audit Script: Windows Service Pack 2 Issue

HI All,

I have created a server audit script that has to work across 2003,
2008 and both 64-bit and 32-bit servers. I used the SOFTWARE\Microsoft
\Windows\CurrentVersion\Uninstall and relevent 64-bit key to list the
software. I have just been told that on some 2003 servers the script
is not reporting the presence of windows service pack 2. I don't have
access to the servers at the moment but assume it must be some type of
streamlined installation. Can anyone confirm what might be causing
this and what the fix would be?

Thanks in advance,

Rob

My System SpecsSystem Spec
Old 10-26-2009   #2 (permalink)
Pegasus [MVP]


 
 

Re: Audit Script: Windows Service Pack 2 Issue


"Rob-S" <rob.stevenson@newsgroup> wrote in message
news:f0922e03-fad9-4c64-97a7-9cecfd85615b@newsgroup
Quote:

> HI All,
>
> I have created a server audit script that has to work across 2003,
> 2008 and both 64-bit and 32-bit servers. I used the SOFTWARE\Microsoft
> \Windows\CurrentVersion\Uninstall and relevent 64-bit key to list the
> software. I have just been told that on some 2003 servers the script
> is not reporting the presence of windows service pack 2. I don't have
> access to the servers at the moment but assume it must be some type of
> streamlined installation. Can anyone confirm what might be causing
> this and what the fix would be?
>
> Thanks in advance,
>
> Rob
Sorry, can't tell without you posting the script. Below is some code that
should give you the Service Pack number for all server types.

strPC = "."
Set OSSet = GetObject("winmgmts:{impersonationLevel=impersonate}!//" & strPC
_
& "/root/cimv2").ExecQuery("select Caption, CSDVersion, SerialNumber " _
& "from Win32_OperatingSystem")
For Each OS In OSSet
wscript.echo OS.Caption, OS.CSDVersion, OS.SerialNumber
Next


My System SpecsSystem Spec
Old 10-26-2009   #3 (permalink)
Richard Mueller [MVP]


 
 

Re: Audit Script: Windows Service Pack 2 Issue


"Pegasus [MVP]" <news@newsgroup> wrote in message
news:uLGyM2mVKHA.2932@newsgroup
Quote:

>
> "Rob-S" <rob.stevenson@newsgroup> wrote in message
> news:f0922e03-fad9-4c64-97a7-9cecfd85615b@newsgroup
Quote:

>> HI All,
>>
>> I have created a server audit script that has to work across 2003,
>> 2008 and both 64-bit and 32-bit servers. I used the SOFTWARE\Microsoft
>> \Windows\CurrentVersion\Uninstall and relevent 64-bit key to list the
>> software. I have just been told that on some 2003 servers the script
>> is not reporting the presence of windows service pack 2. I don't have
>> access to the servers at the moment but assume it must be some type of
>> streamlined installation. Can anyone confirm what might be causing
>> this and what the fix would be?
>>
>> Thanks in advance,
>>
>> Rob
>
> Sorry, can't tell without you posting the script. Below is some code that
> should give you the Service Pack number for all server types.
>
> strPC = "."
> Set OSSet = GetObject("winmgmts:{impersonationLevel=impersonate}!//" &
> strPC _
> & "/root/cimv2").ExecQuery("select Caption, CSDVersion, SerialNumber " _
> & "from Win32_OperatingSystem")
> For Each OS In OSSet
> wscript.echo OS.Caption, OS.CSDVersion, OS.SerialNumber
> Next
>

There is also OS.ServicePackMajorVersion and OS.ServicePackMinorVersion.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Possible Service Pack 2 Issue. Need Help. Windows Updates
Service Pack 1 Issue Vista General
Script (s) to help with file security audit VB Script
XML Audit script PowerShell
***Performance issue? I found a Vista service pack 1 Vista performance & maintenance


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46