Q. How can I list information about the hotfixes I installed on Windows XP or Windows Server 2003?

I have scripted Hotfix.vbs to provide more information about each hotfix than the one line '\[\]: KBnnnnnn - Update' provided by the SystemInfo utility.

When you run Cscript //nolog \Hotfix.vbs, it provides the following information about each installed hotfix:

Number: 195
Caption:
CSName: JSI009
Description: Security Update for Windows XP (KB918439)
FixComments: Update
HotFixID: KB918439
InstalledBy: Jerry
InstalledOn: 6/14/2006
Name:
ServicePackInEffect: SP3
Status:
Hotfix.vbs contains:
On Error Resume Next
Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_QuickFixEngineering", "WQL", _
   wbemFlagReturnImmediately + wbemFlagForwardOnly)
num = 0
For Each objItem In colItems
   num = num + 1
   WScript.Echo "Number: " & num 
   WScript.Echo "Caption: " & objItem.Caption
   WScript.Echo "CSName: " & objItem.CSName
   WScript.Echo "Description: " & objItem.Description
   WScript.Echo "FixComments: " & objItem.FixComments
   WScript.Echo "HotFixID: " & objItem.HotFixID
   WScript.Echo "InstalledBy: " & objItem.InstalledBy
   WScript.Echo "InstalledOn: " & objItem.InstalledOn
   WScript.Echo "Name: " & objItem.Name
   WScript.Echo "ServicePackInEffect: " & objItem.ServicePackInEffect
   WScript.Echo "Status: " & objItem.Status
   WScript.Echo " "
Next


Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish