About Me

My photo
HANUMANGARH, RAJASTHAN, India
Showing posts with label get installed software detail from remote host. Show all posts
Showing posts with label get installed software detail from remote host. Show all posts

Saturday, 14 May 2022

Get Installed Software Detail in remote host

 $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

}


Extract Disk Info from Remote host

 # Define the remote hostname or IP address $remoteHost = Get-Content "C:\temp\RemoteServer.txt" # Define the output CSV file path...