Installing Google Chrome on Windows Using Powershell JumpCloud Commands

So I have been following a few Choco issues recently where app installs have been failing, So im going to expand my commands to some windows PowerShell key commands as well. The first one I didn’t write, I found it somewhere but my browser crashed after copying (if it’s yours please leave a command and a full credit and link will be passed on)

Ive tested it, it downloads and installs chrome, but as usual please use at your own discression. No responsibility is taken for anything wrong it does 🙂

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

Leave a Comment