/build/static/layout/Breadcrumb_cap_w.png
03/09/2009 3220 views
Howdy folks!

Quick questions for all the admins out there. Suppose I have an XP SP2 machine. What would be the quickest or easiest way to find out a list of all patches required to bring this up to speck short of building a machine & downloading all the patches & parsing through HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\.

Same for Server 2003 SP1.

Cheers!
0 Comments   [ + ] Show comments

Comments


Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

All Answers

0
[font="Courier New"][font="Courier New"]Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.CreateTextFile("c:\qfix.csv", True)

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colSoftware = objWMIService.ExecQuery _
("Select * from Win32_QuickFixEngineering")



For Each objSoftware in colSoftware
objTextFile.WriteLine vbquote & _
objSoftware.Caption & vbquote & "," & vbquote & _
objSoftware.Description & vbquote & "," & vbquote & _
objSoftware.FixComments & vbquote & "," & vbquote & _
objSoftware.InstalledOn & vbquote & "," & vbquote & _
objSoftware.HotFixID & vbquote & "," & vbquote & _
objSoftware.ServicePackInEffect & vbquote & "," & vbquote & _
objSoftware.Name & vbquote & "," & vbquote & _
objSoftware.Status & vbquote
Next
objTextFile.Close
Answered 03/09/2009 by: jparekh
Senior Yellow Belt

0
Thanks y'all! the scripting guy was pretty slick!
Answered 03/11/2009 by: kiptek
Second Degree Green Belt