Files
management-scripts/Install-Wireguard.ps1
T

14 lines
494 B
PowerShell
Raw Normal View History

2020-11-19 17:50:42 -05:00
## Make sure we have an administrative token
If ( IsAdmin )
{
$URL = "https://download.wireguard.com/windows-client/wireguard-installer.exe"
2020-11-19 17:50:42 -05:00
## Install package
$Installer = Download-File -URL $URL
If ( Test-Path $Installer ) {
End-Process -Name "wireguard" -Match -Force
Install-Program -Path "${Installer}" -Delete
}
Else { LogMsg "The Wireguard installer was not downloaded properly" }
2020-11-19 17:50:42 -05:00
}
Else { LogMsg "Must be an administrator to install Wireguard" }