English
简体中文繁體中文EnglishРусскийفارسی

Home › Download › Windows

Install on Windows

Installing WireGuard on Windows: installer or MSI, importing a .conf, reading the status window, connecting at boot and the kill switch.

Windows

Windows 10, 11, Server 2016 and later

Installing WireGuard on a Windows PC
Installing WireGuard on a Windows PC KK IN HK, CC BY-SA 4.0

Install

  1. Download the installer and run it. It fetches the build for your system.
  2. Answer Yes to the administrator prompt. The window opens by itself.
  3. Press Import tunnel(s) from file and choose the .conf. Without a file, open the small arrow and pick Add empty tunnel.
  4. Select the tunnel and press Activate.
Once connected (schematic)

Watch Latest handshake. If it shows a time and renews about every two minutes, it works. If the line never appears, see no handshake.

Installer or MSI

The installer is tiny and downloads the package. For offline use or group policy take the MSI and add /qn for a silent install.

Connect at boot

Activate a tunnel once and it becomes a service that returns after a restart. From the command line:

Administrator prompt
wireguard.exe /installtunnelservice C:\wg\wg0.conf

Kill switch

With a single peer and 0.0.0.0/0 in AllowedIPs, the editor shows Block untunneled traffic. Ticked, nothing leaves when the tunnel is down, and local devices such as printers are cut off too.

Can a normal user switch tunnels?

It needs an administrator by default. Add the user to Network Configuration Operators and enable LimitedOperatorUI in the registry to allow switching only.

Two tunnels at once?

The window runs one at a time. To run two, install each as a service with the command above and keep their AllowedIPs apart.

On the same round

Postcodes: WireGuard Windows, WireGuard for PC, WireGuard MSI