PowerShell - Get Chrome Versions
- Jon Boyette
- Apr 15, 2022
- 1 min read
Save as a Get-ChromeVersions.ps1 or similar, this takes a text file of machines and exports to csv all the chrome versions on them, this is useful if they are not set to auto update and was written to see if any versions vulnerable were on the network, I just grabbed all the computers to a text and servers to a text to run
$machines = Get-Content -Path "C:\temp\host2.txt"
ForEach($machine in $machines){
$Version = (Get-Item (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe').'(Default)').VersionInfo
"$machine - $Version" | Out-File C:\temp\Chrome_versions.txt -Append | FL
}
Comments