Popular: Data updated October 27, 2026

Categories

Internet1,356
Communication321
Audio & video898
Graphics & design539
Office & productivity1,124
Developer tools3,134
AI tools529
Security & privacy385
System tools3,114
Games523
Education & science239
Network & IT284

SwitchHosts silent install & uninstall

An app for management and switching of the Hosts file.

Commands for installing SwitchHosts 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 oldj.switchhosts -e --silent --accept-package-agreements --accept-source-agreements
winget upgrade --id oldj.switchhosts -e --silent
winget uninstall --id oldj.switchhosts -e --silent

By installer

64-bit · EXE (NSIS) · Current user · en-US

Silent installSwitchHosts-5.0.3-windows-x64-setup.exe /S
Custom folderSwitchHosts-5.0.3-windows-x64-setup.exe /S /D=C:\Apps\switchhosts
Uninstall registry key
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SwitchHosts
Install folder
%LocalAppData%\SwitchHosts
DisplayVersion
5.0.3

ARM64 · EXE (NSIS) · Current user · en-US

Silent installSwitchHosts-5.0.3-windows-arm64-setup.exe /S
Custom folderSwitchHosts-5.0.3-windows-arm64-setup.exe /S /D=C:\Apps\switchhosts
Uninstall registry key
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SwitchHosts
Install folder
%LocalAppData%\SwitchHosts
DisplayVersion
5.0.3

32-bit · EXE (NSIS) · Current user · en-US

Silent installSwitchHosts-5.0.3-windows-x86-setup.exe /S
Custom folderSwitchHosts-5.0.3-windows-x86-setup.exe /S /D=C:\Apps\switchhosts
Uninstall registry key
HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\SwitchHosts
Install folder
%LocalAppData%\SwitchHosts
DisplayVersion
5.0.3

PowerShell: download, verify, install

Downloads the official file, checks its SHA256 and installs it silently.

install-switchhosts.ps1
$url = 'https://github.com/oldj/SwitchHosts/releases/download/v5.0.3/SwitchHosts-5.0.3-windows-x64-setup.exe'
$sha256 = '0F0AF3E5F4BAE316EEDE8FF1299F15E7CCA8DA81BE33E3AAC7153A278D434ED1'
$file = Join-Path $env:TEMP 'SwitchHosts-5.0.3-windows-x64-setup.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