Powershell

List Installed Software With PowerShell Quick (In 30 Seconds)

The installed programs in Windows can be retrieved by navigating to the “Control Panel > Programs > Programs and Features” section, which is a GUI-based method. However, PowerShell can also get the list of installed programs using a specific piece of code. Doing so is possible on both 32-bit and 64-bit architecture-supported systems.

The following article will provide details on getting the list of installed software on Windows.

How to List the Installed Software With PowerShell Quick (In 30 Seconds)?

To get the list of installed software, use given methods below:

Method 1: Use the “Get-WmiObject” Cmdlet to Get the List of Installed Software

The first method that will be utilized to get the list of installed software in PowerShell is by using the “Get-WmiObject”. Particularly, this cmdlet gets the instances of the “Windows Management Instrumentation” classes. However, using specific properties will help in getting the list of installed software. For instance, overview the mentioned line of code:

Get-WmiObject -Class Win32_Product | Select-Object Name, Version

 
In the above-stated code:

    • First, write the “Get-WmiObject” cmdlet followed by the “-Class” parameter.
    • Later on, assign the “Win32_Product” cmdlet to the “-Class” parameter and add the “|” pipeline.
    • After that, specify the “Select-Object” and assign the values “Name” and “Version”:

 

Method 2: Use the “Get-ItemProperty” Cmdlet to Get the List of Installed Software

Another way to get the list of installed software is by utilizing the “Get-ItemProperty” cmdlet. Particularly, this cmdlet gets the properties of the specified item. For instance, overview the given demonstration:

Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName

 
In the above-stated example:

    • First, specify the “Get-ItemProperty” cmdlet and assign the stated address.
    • After that, specify the “|” pipeline followed by the “Select-Object” cmdlet.
    • Lastly, assign the value “DisplayName” to the cmdlet “Select-Object”:

 

That was all about getting the list of installed software with PowerShell.

Conclusion

A list of installed software with PowerShell can be retrieved with the help of “Get-WmiObject”, and “Get-ItemProperty”. These cmdlets also display the applications’ name and their versions. This post has elaborated on the procedure to get the list of installed software using PowerShell.

About the author

Muhammad Farhan

I am a Computer Science graduate and now a technical writer who loves to provide the easiest solutions to the most difficult problems related to Windows, Linux, and Web designing. My love for Computer Science emerges every day because of its ease in our everyday life.