Install Google Chrome Using Powershell in Windows

Hello Everyone, Today I will show you how to install Google Chrome in Windows Server via Powershell.

Lets start the steps:

1: Copy the below code and paste it in the notepad.

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

2: Save the file with ".ps1" extension.

**.ps1** extension is a Powershell file extension.

3: Copy/paste the file in the server.

4: Now, Run the file as an Administrator User.


Note: You can also open the "Powershell" as an Administrator and paste the above code in the Powershell terminal and Press "Enter". It will install the Google Chrome for you.

I :heart: Windows! :smile: Enjoy