Sometimes we need to be sure ALL servers (production ones, by example) are aligned from HotFix point of view; sometimes we are in doubt production servers and Integration ones are NOT aligned with service packs and hotfixes.
Here's a small script (you can run from the Command Line), to generate a .csv file with all information regarding installed HotFix.
wmic qfe list full /format:csv /output:c:\temp\qfe.csv
NOTE: Windows 7 has a bug with the (some) /format command switch.
The command above DOES NOT WORK giving the following error : “Invalid XSL format (or) file name.”
The following command is a workaround on Windows 7 PCs.
wmic qfe list /format:table >C:\temp\hotfixes.txt
Hope this will help managing your Infrastructure.