Sunday, August 23, 2015

Windows : wmic : Polling Your System for Installed Applications

Windows : wmic : Polling Your System for Installed Applications

I have discovered a new method to find the installed applications on your system.

This method uses "wmic.exe" from the command line.
I don't know if there is a front-end GUI for wmic, but just use the command line.
It's better. Trust me. :^)

1) Launch cmd.exe (or just cmd) and ensure you have administrative privileges.
"Run as administrator"
 ----------------------------------------------------------------------------------------

A note: After running cmd,  you may be presented with the prompt "c:\windows\system32".
Being that it is a system directory, I suggest changing the location.
Change your cli location to something more familiar, such as "c:\users\logged-in-name" or any other location that you have rights to change to.

----------------------------------------------------------------------------------------

2) At the command line, enter: wmic
You will be presented with a different prompt which will be: wmic:root\cli

----------------------------------------------------------------------------------------

3) Then type: /output:C:\InstallList.txt product get name,version
You can change the destination and file name of the output file if you desire.

It may take a while for the system to generate InstallList.txt so be patient.

4) View InstallList.txt with your favorite text editor

----------------------------------------------------------------------------------------

The output using the parameters listed will show the name and version of the applications installed.

Easy enough huh?
 

Yours truly,

Robert Cazares

Find me at robertcazares@gmail.com\

~^-~^-~^-~^-~^-~^-~^-~^-~^-~^-~^-~^-~^-~^-~^-~^-~^-~^-

The Secret Sauce

What is wmic?

The Windows Management Instrumentation Command-line (WMIC) is a command-line and scripting interface that simplifies the use of Windows Management Instrumentation (WMI) and systems managed through WMI. WMIC is based on aliases.

More information -
Using the Windows Management Instrumentation Command-line (WMIC) tool
https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/wmic.mspx?mfr=true


WMIC - Take Command-line Control over WMI
https://msdn.microsoft.com/en-us/library/Bb742610.aspx
 

Created: August 23, 2015, 14:00
Updated: August 23, 2015, 17:00 <--or somewhere="" span="" thereabout="">