How to Install Google Chrome using Windows PowerShell



RECOMMENDED: Click here to fix Windows errors and optimize system performance

One of the first things we usually want to do right after installing a brand new Windows server is to install Google Chrome. This won’t always be easy, however, because Internet Explorer’s advanced security – which is enabled by default in Windows Server – doesn’t allow you to download the required installation package.

powershell

Chrome provides a simple, fast, and safe browsing experience. The browser is an independent piece that represents the larger Google Chrome OS project. In a sense, Chrome OS replaces the entire operating system of your computer with a simple web browser. Thus, instead of using applications outside your browser, it becomes the portal for all your applications, both local and web-based.

To download and install the Google Chrome browser, simply combine a few generic PowerShell commands.

To Install Google Chrome with Windows PowerShell

Here’s a fun tip for PowerShell geeks. Thanks to a line of code we provide, you can install Google Chrome in minutes.



July 2020 Update:

We now recommend using this tool for your error. Additionally, this tool fixes common computer errors, protects you against file loss, malware, hardware failures and optimizes your PC for maximum performance. You can fix your PC problems quickly and prevent others from happening with this software:

  • Step 1 : Download PC Repair & Optimizer Tool (Windows 10, 8, 7, XP, Vista – Microsoft Gold Certified).
  • Step 2 : Click “Start Scan” to find Windows registry issues that could be causing PC problems.
  • Step 3 : Click “Repair All” to fix all issues.

download



  • Installing Google Chrome using PowerShell
  • As we know, the default browser for a Windows operating system is Microsoft Edge. If you plan to install Chrome with Windows PowerShell, here’s the method you can use to do so.
  • Click the Start button and type PowerShell.
  • Right-click Windows PowerShell and select Run as Administrator.
  • If a UAC prompt appears on the screen, click the Yes button to accept.
  • When the Windows PowerShell page opens, copy and paste the following command line
$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)
  • Press the Enter key and wait until the process is complete.

Conclusion

Although it is not technically a single line, it can be used as such: just copy it, paste it into a Powershell prompt and you’re ready to go. It goes without saying that you must have an Internet connection, otherwise it won’t work.

https://superuser.com/questions/337210/how-can-i-silently-install-google-chrome



RECOMMENDED: Click here to troubleshoot Windows errors and optimize system performance