PowerShell provides a management interface for accessing the information on your device. With the introduction of PowerShell 3.0, the Get-WmiObject cmdlet has been superseded by the Get-CimInstance. The Get-WmiObject cmdlet gets instances of WMI classes or information about the available WMI classes. The CimCmdlets modules contain cmdlets that interact with Common Information Model (CIM) Servers like the Windows Management Instrumentation (WMI) service. Here are some interesting guides: How to remove pre-provisioned apps from Windows Image and how to determine Apps UWP and remove pre-provisioned appx in Windows. In this guide, you will learn how to get the list of installed programs locally or remotely in Windows.
This guide was birthed due the comments from this blog post since the WmiObject cmdlet has been superseded by the Get-CimInstance. Here is a guide on how to fix Get-CimInstance Access PermissionDenied: (root\cimv2:Win32_OperatingSystem String) [Get-CimInstance], CimException on Windows.
The Windows Remote Management (WinRM) is the Microsoft implementation of WS-Management Protocol, a standard Simple Object Access Protocol (SOAP)-based, firewall-friendly protocol that allows hardware and operating systems, from different vendors, to interoperate. The WS-Management protocol specification provides a common way for systems to access and exchange management information across an IT infrastructure. While running the CimInstance cmdlets, you may run into issues such as the onces described here “WinRM cannot complete the operation, verify that the specified computer name is valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled“.
View installed Application or programs in Windows
To view the list of installed programs, kindly refer to this guide for more information: How to query a list of installed programs in Windows via Windows Settings, Control Panel, WMIC, PowerShell and Windows Registry. To launch the Windows Settings App, you can also use the
ms-settings:appsfeatures URI schema as shown below. For a complete list of the Ms-Settings URL command, kindly visit this link.
This will list all programs installed on your computer including the Windows Store apps that came pre-installed as you can see below.
On Windows 10, this can be achieved by navigating to the Windows icon and then click on the Settings icon, and select Apps. In the In Apps & features, you will see a list of installed Applications. You could also press the Press
Windows key + I on your keyboard to open
Settings and then click on Apps to view the list of Apps & features.
View list on installed App via the Get-CimInstance
The syntax below will call the command and then specify a class we want to return information on. We can also specify remote computers as well as specific properties and namespaces to target. To get a list of installed applications by vendor, kindly run the command below.
Get-CimInstance -Class Win32_Product | where vendor -eq 'Veeam Software Group GmbH' | select Name, Version
View the list Installed Programs Using the Windows Registry, Command Prompt or PowerShell
You can also query the registry to get a list of all installed programs in Windows PC. You can use a combination of the registry and PowerShell to get a list of installed application. To do this, you will have to launch PowerShell with Administrative rights. You may have to set the section policy to any of these modes as discussed these guide “How to set the PowerShell Execution Policy via Windows Registry, how to set PowerShell Execution Policy via Windows Settings, and how to set Execution Policy via Windows PowerShell. You may also want to read the following guides on how to add servers to the Trusted Hosts list via PowerShell and command Prompt for the WinRM client, and how to determine which execution policy is configured on your Windows device
Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | sort-object -property DisplayName | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate
Gt the list of Installed Apps via the WMIC Command
The Windows Management Instrumentation (WMI) Command-Line Utility (WMIC) is a command-line utility that allows users to perform WMI operations from a command prompt. An interface called WMI offers a number of Windows management features. Applications and WMI scripts can be deployed to automate administrative tasks on remote computers or interface with other Windows tools like System Center Operations Manager (SCCM) or Windows Remote Management (WinRM). Kindly refer to these related guides: How to Locate Your PC’s BIOS Serial Number and System Information on Windows 11, and how to Enable or Disable WMI Traffic at Command Prompt Using WMI Rule.
The following command “wmic product get name” will list all the installed application o your device.
wmic product get name,version
Important! You could also list all possible information in one command like “wmic product get name, version, installlocation”. To save all results in a HTML file (Tabular format), then the command is “wmic /output:software.htm product get Name, Version /format:htable”
Querry Remote Device
Here is are some commands to remotely query the list of installed applications and also by Vendor as you wish.
PS C:\Windows> Get-CimInstance -Class Win32_Product -Computer TechdaPC2 | where vendor -eq 'Microsoft Corporation' | select Name, Version
PS C:\Windows> Get-CimInstance -Class Win32_Product -Computer TechdaPC
Bonus: You can also query Win32_operatingsystem datastore etc. To do this, kind run the command below. Some other tools that can be used to view the list of installed programs is the
UninstallView program from NirSoft.
Get-CimInstance Win32_OperatingSystem | Format-List
Get-WmiObject win32_processor | Format-List
I hope you found this blog post helpful. Now, you learned how to get a list of installed programs locally or remotely in Windows. If you have any questions, please let me know in the comment session.