no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| Next revision |
— | fuss:powershell [2018/04/13 17:25] – created office |
---|
| ====== Install Google Chrome from PowerShell ====== |
| |
| Without requiring a re-configuration of the security settings of Internet Explorer, the following command: |
| <code powershell> |
| $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) |
| </code> |
| |
| will silently install Google Chrome from official sources. |