How to get installed application list using cmd?

To get a list of installed applications using the command line (cmd) in Windows, you can utilize several methods that leverage built-in tools and commands. This guide will walk you through different approaches to achieve this efficiently.

How to Get Installed Application List Using CMD?

The simplest way to get a list of installed applications on a Windows system using the command line is by using the WMIC (Windows Management Instrumentation Command-line) tool. This tool provides a powerful interface for managing Windows systems and retrieving system information.

wmic product get name,version

This command will provide a list of installed applications along with their versions.

What is WMIC and How Does It Work?

WMIC is a command-line tool that allows users to interact with Windows Management Instrumentation (WMI). It’s used to automate administrative tasks on remote computers and retrieve information about the system configuration, including installed applications.

  • Installation Details: WMIC comes pre-installed on Windows systems, making it accessible without additional setup.
  • Command Usage: By using wmic product get name,version, you can extract a list of installed software.

Alternative Methods to List Installed Applications

While WMIC is a straightforward method, there are other ways to obtain a list of installed applications using the command line:

1. Using PowerShell

PowerShell provides a more modern and flexible approach compared to WMIC. You can use the following command in PowerShell:

Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion
  • Flexibility: PowerShell commands allow more flexibility and scripting capabilities.
  • Detailed Output: This command gives detailed information about each application.

2. Using System Information Tool

The systeminfo command can also be used to gather information about installed applications, though it provides broader system details.

systeminfo | findstr /C:"Hotfix"
  • System Overview: This command is more suited for obtaining an overview of system updates and hotfixes.

Practical Examples of Using CMD for Application Lists

To illustrate these methods, let’s consider practical scenarios:

  • Example 1: You need to audit installed software on a company workstation. Using wmic product get name,version provides a quick snapshot of all applications, which can be redirected to a file using > installed_apps.txt.

  • Example 2: For a detailed script, PowerShell can be used to automate application inventory across multiple machines, leveraging its capability to handle complex queries and output formats.

People Also Ask

How Can I Export the Installed Application List to a File?

To export the list to a file, you can append the command with > followed by the file name. For example:

wmic product get name,version > installed_apps.txt

This will save the output to a text file named installed_apps.txt.

Can I Use CMD to List Applications on Remote Computers?

Yes, you can use WMIC to query remote computers by specifying the node:

wmic /node:remote_computer_name product get name,version

Replace remote_computer_name with the actual name of the remote computer.

What Are the Limitations of Using WMIC?

WMIC may not list all applications, especially those not installed via traditional installers. It focuses on applications registered in the system’s database.

Is WMIC Available on All Windows Versions?

WMIC is available on Windows XP and later versions. However, it is deprecated in Windows 10 and later, and Microsoft recommends using PowerShell for future-proofing.

How Do I Use PowerShell to Filter Applications by Publisher?

You can filter applications by publisher using PowerShell:

Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object {$_.Publisher -eq "PublisherName"} | Select-Object DisplayName, DisplayVersion

Replace "PublisherName" with the actual publisher’s name.

Summary

Retrieving a list of installed applications using the command line is a useful skill for system administrators and users looking to manage software efficiently. While WMIC provides a quick method, PowerShell offers more flexibility and control. By understanding these tools, you can better manage and audit software installations on Windows systems. For further learning, explore related topics like Windows scripting and remote system management.

Scroll to Top