Windows: List Installed OS Hotfixes and Service Packs from the Command Line
Want a quick list of hotfixes and service packs that are installed on your Windows PC or Server? By using the Windows Instrumentation command-line interface (WMIC) you can create a quick list. This Tech-Recipe applies to Windows XP Professional, Windows Vista, Windows Server 2003 and Windows Server 2008.
1. Open a command prompt.
2. Execute the following command:
wmic qfe list
A list of all service packs and hotfixes for your operating system will be listed.
If you want to generate a text or HTM file for printing, execute the following:
to generate a textfile:
/output:d:\hotfixes.txt qfe list
to generate a HTM file:
/output:d:\hotfixes.htm qfe list







kwhoff said on December 12, 2008
Typing “systeminfo” from the command provides this information as well. It includes extra info as well. If you only want a list of QFE numbers the wmic call is probably the easiest way.
Donmhr said on July 4, 2010
Both options still work in Windows 7.
kat said on January 17, 2012
this really works
nah said on January 31, 2012
Thanks for this tip. WMIC better than Systeminfo as it shows who installed the patch and the date and time. In corporate envionronments with crap politics this snippet of info can be handy….