Category Archives: command-line
Suppose someone asks you for a list of applications you have installed on your computer. To get this information, what’s the first thing you would think to use? Third-party program? Not us, we have PowerShell.
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
Get-WmiObject -Class Win32_Product | Select-Object -Property Name > C:\Software\PCapps.txt
Compare-Object -ReferenceObject (Get-Content C:\Software\PCapps.txt) -DifferenceObject (Get-Content C:\Software\LAPTOPapps.txt)