Home » Questions » Computers [ Ask a new question ]

Get list of installed applications from Windows command line

Get list of installed applications from Windows command line

I once saw a guy run a command and got a list of all installed applications on his computer. How do I do this?

Asked by: Guest | Views: 36
Total answers/comments: 4
Guest [Entry]

"A PowerShell script to list them:

$loc = Get-ChildItem HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall

$names = $loc |foreach-object {Get-ItemProperty $_.PsPath}

foreach ($name in $names)
Write-Host $name.Displayname

Not exactly command line, but for this purpose I personally use CCleaner's uninstall tool, and you can export the list of installed software to a text file:"
Guest [Entry]

The CCleaner solution above seems like a decent way to go about it, unless you're determined to use the command-line. I've used CCleaner before, it's a good tool But don't assume that everything is registered in the Add/Remove Programs applet (the same list). There are plenty of apps that use xcopy-style installation, i.e. simply unzip this archive and run. Those will not show up in the list.
Guest [Entry]

"Sysinternals psinfo.exe provides the most complete information of all the suggestions given, and it can be run on any Windows PC from the command line directly from an elevated CMD prompt, without permanent downloading:

\\live.sysinternals.com\tools\psinfo.exe -s > %userprofile%\Desktop\_psinfo.txt

You will get a security prompt when you run this, and a EULA prompt the first time on a machine. A text file will be saved to the current desktop.

The EULA can be automatically accepted like this:

\\live.sysinternals.com\tools\psinfo.exe -s /accepteula > %userprofile%\Desktop\_psinfo.txt"
Guest [Entry]

"I use powershell here:
Get-Package |
Where-Object {$_.ProviderName -in @('Programs','msi','chocolatey')} |
Select-Object * |
Out-GridView ""Installed programs"""