Jump to content

Recommended Posts

Posted

Hi,

 

Is there anyway to remotely discover a workstations Service Pack Level, without resorting to Spiceworks?

 

We just need to find out quickly, since we are doing an inplace upgrade to Office 2010, and it requires Windows XP SP3.

 

Cheers,

Posted

Plenty of script examples out there. Just change the computer name.

 

Const Impersonate = "winmgmts:{impersonationLevel=impersonate}!\\"
computer = "."
Set oWMI = GetObject(Impersonate & computer & "\root\cimv2")
Set QueryWMI = oWMI.ExecQuery("SELECT * FROM Win32_OperatingSystem")
For Each oItem In QueryWMI
spVer = oItem.ServicePackMajorVersion
Next

MsgBox "This computer has Service Pack " & spVer & " is installed."

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...