Install Google Chrome on Windows Server with a Powershell Script

Event Viewer: come inviare notifiche e-mail dal Registro Eventi con uno script Powershell

Among the first things we usually want to do right after we’ve installed a brand-new Windows Server is to also install Google Chrome. Doing that won’t always be easy, though, because Internet Explorer Enhanced Security – which is activated by default in Windows Server – won’t allow to download the required setup package.

In order to fix this you have two options: either disable the Enhanced Security entirely by following these steps or execute the following Powershell Script, which will install Google Chrome in a matter of seconds:

Although this isn’t an one-liner technically, it can be used as one: just copy it, paste it into a Powershell prompt and you’ll be good to go. Needless to say, you’ll need to have an internet connection available, otherwise it won’t work.

Many thanks to this Gist for the idea and to this other Gist for the actual implementation.

 

About Ryan

IT Project Manager, Web Interface Architect and Lead Developer for many high-traffic web sites & services hosted in Italy and Europe. Since 2010 it's also a lead designer for many App and games for Android, iOS and Windows Phone mobile devices for a number of italian companies. Microsoft MVP for Development Technologies since 2018.

View all posts by Ryan

1 Comment on “Install Google Chrome on Windows Server with a Powershell Script”

  1. Pingback: Disable Internet Explorer Enhanced Security in Windows Server 2012
  2. Even easier is to just install FireFox first (which doesn’t pose any problems), and then from FireFox install Chrome. I just did this in Windows Server 2016, and it was easy without having to change any settings or run any obscure command line scripts.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.