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 0
Views: 7530

Reader Interactions

Comments

  1. 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.

Leave a Reply

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