Skip to content

Instantly share code, notes, and snippets.

@hbisneto
Created October 19, 2023 18:48
Show Gist options
  • Save hbisneto/b327ada9ad36b91566824f0a52107ca2 to your computer and use it in GitHub Desktop.
Save hbisneto/b327ada9ad36b91566824f0a52107ca2 to your computer and use it in GitHub Desktop.
Download Google Chrome with PowerShell
# Specify the URL of the Chrome download file
$url = "https://dl.google.com/chrome/install/latest/chrome_installer.exe"
# Specify the path for the downloaded file
$output = "$env:temp\chrome_installer.exe"
# Download the file
Invoke-WebRequest -Uri $url -OutFile $output
# Start the installation
Start-Process -FilePath $env:temp\chrome_installer.exe -Args "/silent /install" -Verb RunAs -Wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment