- 1 year ago
Is there any method for getting details of all installed apps in a Windows device using shell commands
Yes, you can use shell commands in Windows to get details of all installed apps on a device. One way to achieve this is by utilizing the Get-WmiObject
cmdlet in PowerShell, which allows you to interact with Windows Management Instrumentation (WMI) and retrieve information about installed software.
Here's an example PowerShell command to get a list of installed applications:
powershellGet-WmiObject -Class Win32_Product | Select-Object -Property Name, Version, Vendor
This command retrieves the Name
, Version
, and Vendor
properties of installed products using the Win32_Product
WMI class.
You can run this command in a PowerShell session, or you can execute it using the powershell.exe
command in a Command Prompt or a batch file:
batchpowershell.exe -Command "Get-WmiObject -Class Win32_Product | Select-Object -Property Name, Version, Vendor"
The output will display the name, version, and vendor of the installed applications.
Please note that retrieving installed application information through WMI may have some limitations, such as not listing certain types of applications or not providing comprehensive details. Additionally, depending on the version of Windows and the user's privileges, the results may vary. Therefore, it's always a good practice to test the command on the target system and adapt it as needed.