How to Install Chrome Browser in AWS EC2 Instance - Windows 2012/2016/2019:
With Windows 2012/2016/2019 AWS EC2 Instance images, we get Internet Explorer browser installed by default but it is no longer in use. In this video, we will install chrome browser on Windows 2016 server using PowerShell and one command.
Command:
$LocalTempDir = $env:TEMP; $ChromeInstaller = "ChromeInstaller.exe"; (new-object System.Net.WebClient).DownloadFile('[ Ссылка ]', "$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)
![](https://s2.save4k.ru/pic/UBlLmq6GSL8/maxresdefault.jpg)