Install Chrome in Windows Server using Powershell

Estimated reading time: 1 min

Follow the steps to install chrome

The default browser of windows server is Internet Explorer.  By default this blocks all connections which can make it hard to browse through the internet. You can follow these easy steps to install chrome which will be much easier to work with.

1. Start PowerShell as Administrator

Go to start and search for ”PowerShell”,  right-click on Windows PowerShell and click on Run as adminstrator.

PowerShell as Administrator 1

If you’re asked Do you want to allow this app to make changes to your device answer Yes.

PowerShell as Administrator 2

Powershell 1

2. Paste the following code in PowerShell

$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)

 

Powershell 2

3. Press enter and wait till it finishes

Powershell 3

Was this article helpful?
Dislike 47
Views: 289563

Reader Interactions

Comments

  1. Jebi Nivens says

    This script does not work. It gives the wait message once and then the Verbose message, but nothing is actually installed. I am running on windows 10 with an HP EliteBook x360 830 G6.

  2. GPJJ says

    I want to use this script on a Windows server but don't have active internet connection. Can I put the chrome_installer.exe file to an AWS S3 bucket and install using this script? If yes, how should it look like?

  3. JEAN MBADI says

    Thanks a lot. Really helpful; quite frustrating to run the server and willing to download important apps but with IE, so much hassle to have that done. Big thank you.

  4. Al says

    I have used your Script via Endpoint manager\Intune. Works Great Thank you! I now need a PS Script to Unintstall Chrome. Do you have one for that as well?

Leave a Reply

Your email address will not be published. Required fields are marked *