Install Chrome on Windows Server using PowerShell

Опубликовано: 28 Сентябрь 2024
на канале: LessonZilla
385
4

In this video, I'm showing you how to install Google Chrome on any Windows Server machine using PowerShell.
Steps
1. Open PowerShell as administrator
2. Copy paste the below script and hit Enter
3. Wait for a minute or two for the installation to complete

Script

$LocalTempDir = $env:TEMP; $ChromeInstaller = "ChromeInstaller.exe"; (new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/3..., "$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)

If you like this video, please give it a thumbs up, share with your friends and please show support by subscribing to my channel.

Thanks.