aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorJason A. Donenfeld <Jason@zx2c4.com>2021-09-29 17:21:18 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2021-09-29 17:21:33 -0600
commitc0f99911a2ce041a1489dfdd500e339aa80811cf (patch)
treeb5bdf293a211b98733d58bf4e1e6c63746a57b4c
parentversion: bump (diff)
downloadwireguard-windows-c0f99911a2ce041a1489dfdd500e339aa80811cf.tar.xz
wireguard-windows-c0f99911a2ce041a1489dfdd500e339aa80811cf.zip
docs: add example for task scheduler
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--docs/enterprise.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/enterprise.md b/docs/enterprise.md
index 8e4ca59e..fbbbc13a 100644
--- a/docs/enterprise.md
+++ b/docs/enterprise.md
@@ -83,6 +83,12 @@ Or, to log the status of that command:
> wireguard /update 2> C:\path\to\update\log.txt
```
+One could have Task Scheduler run it daily at 3am:
+
+```text
+> schtasks /create /f /ru SYSTEM /sc daily /tn "WireGuard Update" /tr "%PROGRAMFILES%\WireGuard\wireguard.exe /update" /st 03:00
+```
+
### Network Adapters
The tunnel service creates a network adapter at startup and destroys it at shutdown. It may be desirable, however, to remove all network adapters created in WireGuard's pool and uninstall the driver if no other applications are using our network adapters. This can be accomplished using the command: