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. Go to start and search for ”Powershell” and open it

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 7
Views: 50362

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.

Leave a Reply

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

snel-knowledgebase