
Install Google Chrome With PowerShell
In this tutorial you will learn how to install Google Chrome using PowerShell. By the end of this tutorial, you would have successfully deployed Google Chrome using PowerShell onto a Windows computer.
$LocalTempDir = $env:TEMP; $ChromeInstaller = "ChromeInstaller.exe"; (new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', "$LocalTempDir$ChromeInstaller"); & "$LocalTempDir$ChromeInstaller" /silent /install; $Process2Monitor = "ChromeInstaller"; Do { $ProcessesFound = Get-Process | ?{ $Process2Monitor -contains $_.Name} | Select-Object -ExpandProperty Name; If ($ProcessesFound) { "Still running: $($ProcessesFound -join ', ')" | Write-Host; Start-Sleep -Seconds 2 } else { rm "$LocalTempDir$ChromeInstaller" -ErrorAction SilentlyContinue -Verbose } } Until (!$ProcessesFound)
The PowerShell Script will do the following.
- Call to URL Google Chrome package.
- Download the package and place it in a temp folder.
- Silently install Google Chrome onto a Windows computer.
If you have any questions, feel free to reach out.
Great script, thanks for the share!
FYI, you can use ‘latest’ path to never have to update the script.
http://dl.google.com/chrome/install/latest/chrome_installer.exe