top of page
Writer's pictureRadhakrishnan Govindan

How get a Installed programs using Powershell

In this PowerhShell command, we will see how to get installed programs in the computer

installed programs  information can be fetched using the WMI_Object using the Class: Win32_Product. it is very straight forward to get the installed applications.

Run the command:  Get-WmiObject -Class Win32_Product -Computer COmputername

it will get all the installed applications in the Computer. In my case, SLI2640 is my test lab server of the Domain: Simple Life Infrastructure(SLILocal.IN).


1

To get Specific installed application in the server, Run the following command,

Get-WmiObject -Class Win32_Product  | Where-Object -FilterScript {$_.Name -like “*mcafee agent*”}


2

Now the real test starts, what will be the case if there is a requirements to get for the Bulk Computers,

Get-Content Computers.txt | ForEach-Object {Get-WmiObject -Class Win32_Product -ComputerName $_} | Where-Object -FilterScript {$_.Name -like “*mcafee agent*”} | Select-Object Name, Version,__SERVER


3

You can export the Reports for bulk Computers,

Get-Content  Computers.txt | ForEach-Object {Get-WmiObject -Class Win32_Product -ComputerName $_} | Where-Object -FilterScript {$_.Name -like “*mcafee agent*”} | Select-Object Name, Version,__SERVER | Out-File outfile.txt

outfile.txt is the output report for all the computers parsed in the computers.txt file.

2 views0 comments
bottom of page