Patch Management - Guidance
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!
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
Answers (3)
Please log in to answer
Posted by:
jparekh
15 years ago
[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
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
Posted by:
revizor
15 years ago
Powershell example:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/mar09/hey0310.mspx
http://www.microsoft.com/technet/scriptcenter/resources/qanda/mar09/hey0310.mspx
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.