![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||