Get a List of Software Installed on Your PC with a Single Line of PowerShell

656x306ximage42.png.pagespeed.ic.f4tMbppvv4

How to Get a List of Installed Software on Your PC

Getting a list of installed software is as simple as using this straightforward WMI query.

Get-WmiObject -Class Win32_Product | Select-Object -Property Name

656x306ximage40.png.pagespeed.ic.kex3D7xVuf

 

You will probably want to export that to a file though, which is also easy enough — we’ll send the output using the > symbol and adding the path to a new text file that we want to create.

Get-WmiObject -Class Win32_Product | Select-Object -Property Name > C:\Software\PCapps.txt

What makes using PowerShell really neat is that if you do this on two different machines, you can easily compare the software installed on them.

Compare-Object -ReferenceObject (Get-Content C:\Software\PCapps.txt) -DifferenceObject (Get-Content C:\Software\LAPTOPapps.txt)

656x306ximage42.png.pagespeed.ic.f4tMbppvv4

Any entries with a side indicator pointing to the right (=>) mean that the software is installed on my laptop but  not on my PC, and any entries with a side indicator pointing to the left (<=) mean that the software is installed on my PC but not on my laptop.

 

happy wheels

Leave a Reply

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