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

Share this:

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

Written by Anderson Patricio

Anderson Patricio

Anderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides the Microsoft Award he also holds a Solutions Master (MCSM) in Exchange and several other certifications. Anderson has been contributing to the Microsoft Community with articles, tutorials, blog posts, twitter, forums and book reviews. He is a regular contributor here at ITPROCentral.com, MSExchange.org, Techgenix.com and Anderson Patricio.org (Portuguese).

Related Post

Using PowerShell as default option in Windows 10 m... By default in Windows 10 (well, on previous versions as well) when we either use right-click on the lower-left corner or Windows + X , we will have a ...
PowerShell Script to fix Exchange Server 2013 Secu... I wrote the following PowerShell script to help fixing the issue reported by Microsoft Exchange Team (http://blogs.technet.com/b/exchange/archive/2013...
Checking if a mailbox is valid using Exchange Mana... In some scenarios we need to check if a mailbox database is valid on Exchange Server, this kind of validation is useful when migrating/transitioning m...
How to remove the several Organization Units that ... In some situation an entire structure of Organization Units must be deleted, and by default new OUs are automatic defined to protect them against dele...