Retrieving the GUID of installed applications on you Windows Server/Workstation

If you are managing desktop applications or working on DSC packages, the GUID of installed application will be required at some point of your journey.

Solution


There are several ways to find out the information about the GUID of any given application. A simple way to achieve this goal is to check the Registry and find the software there and copy the GUID. The tricky part is that the software name is part of the “folder”/Key with the GUID value, so you are better off by searching the name of the software from the Uninstall key.

image

We can use PowerShell to retrieve all installed software using this following cmdlet.

Get-WmiObject Win32_Product  | select IdentifyingNumber,Name,Version

The output will have a list of three (3) columns: GUID, Name and version.

image

If you are looking for a specific entry, you can use the following cmdlet to retrieve the information.

Get-WmiObject Win32_product | where-object { $_.Name -contains ‘iTunes’ }

image

If you are not sure about the name of the software, we can always use –like and provide just a portion of the string that we are looking for.

Get-WmiObject Win32_product | where-object { $_.Name -like ‘iT*’ }

image