Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save petrsvihlik/96c50d8ec385fac9c54633a9ca341bb0 to your computer and use it in GitHub Desktop.
Save petrsvihlik/96c50d8ec385fac9c54633a9ca341bb0 to your computer and use it in GitHub Desktop.
Install Chrome from PowerShell
(new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', 'c:/temp/chrome.exe');. c:/temp/chrome.exe /silent /install;rm c:/temp -rec
# or
$Path = $env:TEMP; $Installer = "chrome_installer.exe"; Invoke-WebRequest "https://dl.google.com/chrome/install/latest/chrome_installer.exe" -OutFile $Path$Installer; Start-Process -FilePath $Path$Installer -Args "/silent /install" -Verb RunAs -Wait; Remove-Item $Path$Installer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment