Purpose:
This article explaining the steps to collect installed driver/application version from multiple Windows servers via PowerShell.
Steps:
1. Create a folder as "c:\scripts" in any of the server in network.
2. Create a txt file called "c:\scripts\serverlist.txt" and list all server hostname FQDN as below
3. Create a PowerShell script file "c:\scripts\Appversioncheck.ps1" and copy below texts.
########################################################
$serverlist = @(get-content -Path "c:\scripts\serverlist.txt")
foreach ($server in $serverlist)
{
$virtioinfo = Get-WMIObject -computername $server -Query "SELECT * FROM Win32_Product Where name Like '%Google Chrome%'" | select Name, Version
$virtioversion = $virtioinfo.version
write-host "$server,$virtioversion"
}
No comments:
Post a Comment
Enter Comments...