General discussion

Locked

Scan for Windows SP1 on a network

By H-tech ·
Hello,

I'm working in a department of about 400 users and wanted to make sure everyone was running Windows Service Pack 2. Is there a possible way (a tool maybe?) to scan a network to search for computers that are still running Windows XP SP1? Thanks.

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

From MS technet

by zlitocook In reply to Scan for Windows SP1 on a ...

List the Latest Installed Service Pack

Description

Returns the last service pack to be installed on a computer.

Supported Platforms

Windows Server 2003
Yes

Windows XP
Yes

Windows 2000
Yes

Windows NT 4.0
Yes

Windows 98
Yes


Script Code


strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")

For Each objOperatingSystem in colOperatingSystems
Wscript.Echo objOperatingSystem.ServicePackMajorVersion _
& "." & objOperatingSystem.ServicePackMinorVersion
Next

Works from a XP computer with full Amin. rights.

Collapse -

Wrong forum.

by deepsand In reply to Scan for Windows SP1 on a ...

This is a tech. problem, in search of a solution.

It properly belongs in "Technical Q&A," not in "Discussions." Please re-post there.

Not only will you be more likely to attract the attention of those seeking to provide answers, but you will also make it easier for those seeking discussions to find such.

Thank you.

Back to Windows Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums