Hi Admin

Here is the list of commands can be used to generate the installed patches on windows Server.

Option 1

Get psinfo from http://technet.microsoft.com/en-us/sysinternals/bb897550.aspx

Run psinfo -h to get the list of hotfixes

Option 2


Another method that doesn't require 3rd party software using wmic; just type: wmic qfe from the command line. The default output gives really long lines, so you might be better off redirecting to a file and viewing it in your favourite text editor.

Variations on a theme include:

wmic qfe list full
wmic qfe get HotfixID,ServicePackInEffect,InstallDate,InstalledBy,InstalledOn
wmic qfe where "HotfixID = 'KBXXXXXX'"
wmic qfe where "HotfixID = 'KBXXXXXX'" get HotfixID, InstallDate, InstalledBy, InstalledOn
wmic qfe where "HotfixID = 'KBXXXXXX" list full
wmic /node:myserver qfe list full

Option 3
Use Powershell to do the same thing.

Local: get-wmiobject -class win32_quickfixengineering
Remote: get-wmiobject -class win32_quickfixengineering -computername mysever

Again, this can take filters, for example:

get-wmiobject -class win32_quickfixengineering -filter "HotfixID = 'KBXXXXXX'"
...or as it's Powershell, just pipe through where-object.

Option 4

You can try this instead:

$Session = New-Object -ComObject Microsoft.Update.Session
$Searcher = $Session.CreateUpdateSearcher()
$Searcher.Search("IsInstalled=1").Updates | ft -a Date,Title

 

Thanks

Amit Gupta