I'm looking to find out if a KB is installed via command line.
Asked
Active
Viewed 2.9e+01k times
6 Answers
70
In addition to systeminfo there is also
wmic qfe
Example:
wmic qfe get hotfixid | find "KB99999"
wmic qfe | find "KB99999"
There is also update.exe
Or from powershell, just adjust it for your needs:
Get-WmiObject -query 'select * from win32_quickfixengineering' | foreach {$_.hotfixid}
7
run "systeminfo" in a CMD window and it will pull back a load of statistics about your system including what patches are installed.
ccame
- 1,059
3
Some other possibilities: Grep %windir%\Windowsupdate.log for the KB number. Or use reg.exe to export the corresponding install keys.
Tonny
- 6,360
- 1
- 20
- 31
0
As someone asked about using wmic at a PowerShell prompt, just use Select-String (or sls).
wmic qfe get hotfixid | sls "KB99999"
Xopher
- 101