- 执行该命令必须拥有管理员权限
- conf必须使用完整的路径名。
- 需要先 wireguard.exe /uninstalltunnelservice TUNNEL_NAME 现在的vpn。
- wireguard.exe /installtunnelservice “C:\Program Files\WireGuard\Data\Configurations\office.conf.dpapi”
- wireguard.exe /uninstalltunnelservice office
- at命令概述(at命令在Windows11中,已经弃用,使用schtasks)
- schtasks
- schtasks /create /tn wg01 /sc once /st 16:55 /sd 2024-10-17 /tr "wireguard.exe /installtunnelservice 'C:\Program Files\WireGuard\Data\Configurations\amd_7600g_wg0.conf.dpapi'"