Get Installed Applications

Here is a script to get all the applications installed on the server. This script can be used to list all the applications installed on a single server.

$Applications = Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, InstallDate
$Applications += Get-ItemProperty HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, InstallDate

$Applications = $Applications | Where-Object {$_.DisplayName} | Sort-Object DisplayName

$Applications

See the explanation of the above script below:

$Applications = Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, InstallDate

All 64 bit applications are here at the above mentioned registry key. So we need to check for 32 bit applications as well to get total list of Application installed on the server.

$Applications += Get-ItemProperty HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, InstallDate

Here, we have added the applications list to above 64 bit applications.

Then the last line prints the total applications.

There is another option to get installed applications using WMI calss win32_product. WIn32_product represents the products installed by windows installer. This process is very slo and is not recommended. Whenever you run this WMI class, it performs a consistency check of packages that are installed and also attempts to verify and repair installs.

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest
Share on reddit
Share on skype
Share on telegram
Share on whatsapp
Share on email
Share on print

Leave a Reply

Your email address will not be published. Required fields are marked *

Post comment