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.
If you’re asked Do you want to allow this app to make changes to your device answer Yes.
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)
Very Helpful…
Perfect! Thank you!
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.
Thats strange, could you provide the error your getting?
After the installation how I run Chrome???
You can find Chrome in your Start menu.
– Start –> Windows PowerShell –> Right-click Windows PowerShell –> Run as administrator
– Paste the script to the prompt
– Press Enter.
This one should be noted on the post..
Danke
Thank you, this has been added to the article.
Perfectly. thanks a lot.
whoever tries this , Should run powershell in admin mode and not default .
@JEBI
Thank you, added to article.
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?
No, it will not work. You need an active internet connection in order to download the chrome installer.
Hey… Thank you very much for your help. This post was very helpful to me.
thanks
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.
very helpfuuuuuul . thanks
Thank you so much!
VERBOSE: Performing the operation "Remove File" on target "C:\Users\admin\AppData\Local\Temp\2\ChromeInstaller.exe".
You have to open Windows PowerShell as administrator.
how do I update chrome browser in the azure devops windows VM?
OMG, thanks!
Really appreciate it!!!
DUDE! So much LOVE this!
Makes spinning up a new server so much easier.
Awesome!
Awesome! Just what I needed and wouldn't have been able to do on my own! Thank you!
really helpful! kudos!
Thank you!
You saved my day. Thanks a ton.
thanks a lot dude!!!
thanks a lot!!!
Thanks
Great Idea. I finally no longer need to go through the painful IE enhanced security settings to get a decent browser on my servers.
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?
At the moment we don't have a script for uninstallation.
Thank You, Very useful command.
thanks for this. Can we also update the chrome using powershell?
Chrome will install a service to keep Chrome updated. But have you tried running the above code for installing Chrome? It might update Chrome as well.
Wow, after scratching my head whole day. Thank you. It worked.
I love you guys. So much good stuff on your support site!
Thank you very much, it worked.
Thanks a lot!
Awesome work, simple superb, works like a charm.
perfect
OMG! It worked. Thank you so much
Thank you for your help!