This post is a diversion from the usual Microsoft Dynamics GP focused ones, but is related to Microsoft. The admin team at work recently emailed everyone asking for a list of all the applications installed on laptops and desktop machines for a licence audit. They asked for a screen shot of the Add/Remove Programs window, but one of the developers replied with an email containing a set of commands which would list all programs. Which is much easier when you have a lot of software installed which would require multiple screenshots.
To run the script, open a command prompt in administrator mode and type:
cd c:\windows\system32\wbem (hit enter)
wmic (hit enter)
/output:C:\InstallList.txt product get name,version
The first highlighted section above contains the output location and the second shows the fields to return.
You can use the following to get a list of available fields:
cd c:\windows\system32\wbem (hit enter)
wmic product get /?(hit enter)