Commands for installing Plex without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id Plex.Plex -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Plex.Plex -e --silentwinget uninstall --id Plex.Plex -e --silentBy installer
64-bit · EXE (NSIS) · All users
Silent install
Plex-1.115.0.426-4e960a1d-x86_64.exe /SCustom folder
Plex-1.115.0.426-4e960a1d-x86_64.exe /S /D=C:\Apps\plex- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Plex
- Install folder
- %ProgramFiles%\Plex\Plex
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-plex.ps1
$url = 'https://downloads.plex.tv/plex-desktop/1.115.0.426-4e960a1d/windows/Plex-1.115.0.426-4e960a1d-x86_64.exe'
$sha256 = '979971F001A45909AEEDA9BFA72125DC5EC8D3779250BC5A3DA4E9504513F193'
$file = Join-Path $env:TEMP 'Plex-1.115.0.426-4e960a1d-x86_64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait