

You can also read here for additional info. It will work even if IE Enhanced Security is turned on, thus making it very useful for Windows Server brand-new installations when IE will prevent you from downloading Chrome. Well, technically it isn't an one-liner, but it works like it is. You can "silently install" Google Chrome on any modern Windows OS with the following Powershell one-liner: $LocalTempDir = $env:TEMP $ChromeInstaller = "ChromeInstaller.exe" (new-object ).DownloadFile('', "$LocalTempDir\$ChromeInstaller") & "$LocalTempDir\$ChromeInstaller" /silent /install $Process2Monitor = "ChromeInstaller" Do Until (!$ProcessesFound)

$("Authorization", "Basic " + $credentialsB64) Ĭ:\temp\chrome_installer.exe /silent /install $credentialsB64 = ::ToBase64String($credentialsB64) $credentialsB64 = ::UTF8.GetBytes($credentials) # our curl command, with basic authentication if $credentials provided C:\temp is an existing directory that you can access (or just change your $filePath).Google Chrome Standalone Offline Installer Link (it will auto-determine your PC’s CPU architecture.) To be specific there are links to 32-bit and 64-bit versions. Chrome about us page screenshot Tool Download the latest Chrome Stable variants for Windows 64-bit, and 32-bit. ensure you are running PowerShell in Administrator mode Google Chrome 64-bit: direct link Figure 1.The code will call Get-Url and silently execute chrome_installer.exe.Create a ps1, psm1 or simply copy and paste and execute this code block in PowerShell.If you need basic auth, I've provided parameters for that too. If only PowerShell 2.0 had a native one-line curl.įor simplicity, I created my own, which takes a url and downloads the content.
