Windows 2008R2 - View all installed programs

Caporegime
Joined
18 Oct 2002
Posts
29,493
Location
Back in East London
Hi guys,

I'm RDP'd to our Test machine and when viewing the list of installed programs in "Programs and Features" I can only see the stuff installed with my user account. How do I view everything installed by anyone? Yes, I am admin. :)

We have an automated installation that I want to check is installing with correct version numbers.
 
Open PowerShell as Admin

Enter the two commands below. :)

Code:
$keys = Get-ChildItem HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall
$keys | % {Get-ItemProperty $_.PsPath} | select DisplayName, DisplayVersion, Publisher

EDIT: Slightly simpler version

Code:
Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select DisplayName, DisplayVersion, Publisher

One-liner ***! :p
 
Last edited:
How peculiar.

Assuming you have a bunch of stuff installed it should all be listed under that reg key.

Out of curiosity
Code:
gci HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall | measure

What do you get for the Count value?
 
So there are 12 installed programs, the gui only shows 4 and my command only shows 1...

Code:
gci HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall

That should list all the keys. Why the PS command ignores 11 of them I have no idea. Unless they don't have all the properties. May be worth looking at the reg key via regedit too.
 
Ahh!

Code:
gp HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select DisplayName, Displa
yVersion, Publisher
64-bit OS has two reg keys for this! :)
 
Code:
gp HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select DisplayName, DisplayVersion, UninstallString | Format-List
The UninstallString property tells you what command to run to uninstall that particular program. Bang it into a CMD console and away it will go.

I also wrote a script in PS that will do it all for you, if you are interested.
 
Last edited:
Back
Top Bottom