SwitchHunt / catalog
WireGuard - Silent Install Switch
The hand-curated silent install command for WireGuard on Windows, plus its silent uninstall command - for unattended, quiet, fleet-wide deploys. Copy, paste, ship - smoke-test in a throwaway VM first.
Silent install command
msiexec /i "installer.msi" /qn DO_NOT_LAUNCH=1 Silent uninstall command
msiexec /x "installer.msi" /qn Replace installer.msi with the actual installer filename (or its full path).
Notes & gotchas
The client UI launches after install unless DO_NOT_LAUNCH=1. Installs the WireGuardNT network driver. Tunnels are added afterwards, e.g. wireguard.exe /installtunnelservice C:\path\wg0.conf. Only Administrators can drive the UI unless you enable the LimitedOperatorUI policy for Network Configuration Operators.
Install options
Add any of these to the install command. Values shown are the useful setting; "..." means you supply your own.
| Option | What it does |
|---|---|
DO_NOT_LAUNCH=1 | Don't open the WireGuard UI when the install finishes. |
Lab-tested
On 2026-10-12 we ran the install command above as SYSTEM (how deployment tools run it) on a Windows 11 VM against WireGuard 1.1.1, and confirmed the app showed up in Add/Remove Programs - not just that the installer exited 0. The uninstall command above then removed it. Vendors change installers between versions, so smoke-test a new one before you ship it fleet-wide.
Detection path
A file whose presence proves WireGuard is installed - handy as an Intune / RMM detection rule:
C:\Program Files\WireGuard\wireguard.exe FAQ
What is the silent install command for WireGuard?
Run: msiexec /i "installer.msi" /qn DO_NOT_LAUNCH=1
How do I silently uninstall WireGuard?
Run: msiexec /x "installer.msi" /qn
Any gotchas installing WireGuard unattended?
The client UI launches after install unless DO_NOT_LAUNCH=1. Installs the WireGuardNT network driver. Tunnels are added afterwards, e.g. wireguard.exe /installtunnelservice C:\path\wg0.conf. Only Administrators can drive the UI unless you enable the LimitedOperatorUI policy for Network Configuration Operators.
What install options does the WireGuard installer take?
DO_NOT_LAUNCH=1: Don't open the WireGuard UI when the install finishes.
Got a different installer, or one that isn't in this list? Drop it into SwitchHunt and it reads the silent switches right in your browser, nothing uploaded.