$Computers= Get-Content C:\Users\su-skumar\Desktop\servers.txt
ForEach ($Computer in $Computers){
Get-WmiObject -Class Win32_Product -ComputerName $Computer | where Name -eq "CrowdStrike Sensor Platform" -ErrorAction Stop |
Select-Object -Property @{N='Computer';E={$Computer}},Name,Version |
Export-Csv "C:\progrms.csv" -Append
}
No comments:
Post a Comment