- Open the command prompt (c:\Windows\System32\cmd.exe).
- Run the wmic command with the additional parameters to output the required data. For example:
List of all installed Windows OS hotfixes and updates
Run the following command to generate a list of all installed Windows OS hotfixes/updates and output this to a txt file:
- wmic qfe > myInstalledOSPatches.txt
Example Results:
Caption CSName Description FixComments HotFixID InstallDate InstalledBy InstalledOn Name ServicePackInEffect Status
http://support.microsoft.com/?kbid=2894856 WIN-ERITRCNTKKT Security Update KB2894856 WIN-ERITRCNTKKT\Administrator 12/2/2014
http://support.microsoft.com/?kbid=2896496 WIN-ERITRCNTKKT Update KB2896496 WIN-ERITRCNTKKT\Administrator 12/2/2014
http://support.microsoft.com/?kbid=2918614 WIN-ERITRCNTKKT Security Update KB2918614 WIN-ERITRCNTKKT\Administrator 12/2/2014
http://support.microsoft.com/?kbid=2919355 WIN-ERITRCNTKKT Update KB2919355
...
List of all installed Programs
Run the following command to generate a list of all programs installed on the machine.
- wmic product get name,version > myInstalledPrograms.txt
Example Results:
Name Version
Lenovo Patch Utility 1.3.0.9
Microsoft Lync Web App Plug-in 15.8.8308.577
grepWin x64 1.6.546
Lenovo Patch Utility 64 bit 1.3.0.9
Citrix Online Launcher 1.0.198
...
You can view the full reference for the Windows Management Instrumentation Command-line by accessing the URL listed in the Reference section.