Created
October 19, 2023 18:48
-
-
Save hbisneto/b327ada9ad36b91566824f0a52107ca2 to your computer and use it in GitHub Desktop.
Download Google Chrome with PowerShell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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