Installing Adobe Reader on Windows Using Powershell JumpCloud Commands

Another quick command based on my previous ones for installing Adobe Reader on Windows using Powershell.

As usual run this at your own risk.

$LocalTempDir = $env:TEMP; $AdobeReaderInstaller = "AdobeReaderInstaller.exe"; (new-object    System.Net.WebClient).DownloadFile('https://admdownload.adobe.com/bin/live/readerdc64_uk_xa_crd_install.exe', "$LocalTempDir\$AdobeReaderInstaller"); & "$LocalTempDir\$AdobeReaderInstaller" /silent /install; $Process2Monitor =  "AdobeReaderInstaller"; 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\$AdobeReaderInstaller" -ErrorAction SilentlyContinue -Verbose } } Until (!$ProcessesFound)

Leave a Comment