Autostart WireGuard after Windows restart

Autostart WireGuard after Windows restart.

1) Add a file to run in Windows Scheduler autorun: Start→taskschd.msc

Autostart WireGuard Windows task scheduler

Click on "Create a simple task" → Enter a Name for the task (eg wireguard) → Next

Autostart WireGuard Windows task name

Select "When the computer starts"→ Next

Autostart WireGuard Windows on computer startup

Select "Run program"→ Next

Autostart WireGuard Windows select program

In the "Program or script" select our file to run WireGuard (by default "C:\Program Files\WireGuard\wireguard.exe")
Add Arguments: 

/installtunnelservice "C:\Program Files\WireGuard\wg_server.conf"

where:
C:\Program Files\WireGuard\wg_server.conf - location of the configuration file *.conf downloaded from your personal account

Autostart WireGuard Windows configuration file address

Check the box next to "Open the Properties window" for this task after clicking "Done""→ Done

Autostart WireGuard Windows properties

In the window that opens, check the box next to "Run with highest privileges"→OK 

Autostart WireGuard Windows save task

Done. Reboot, check


Share this article: