Files
management-scripts/Install-Wireguard.ps1
T
dyoder 4b84f79083 remove unnecessary code from Install-DeltekVision.ps1
comment out Create-Shortcut from Install-Wireguard.ps1
fix some log messages in Tools.ps1
2020-12-03 20:18:23 -05:00

20 lines
806 B
PowerShell

## Make sure we have an administrative token
If ( IsAdmin )
{
$URL = "https://download.wireguard.com/windows-client/wireguard-installer.exe"
## Download package
$Installer = Download-File -URL $URL
If ( Test-Path $Installer ) {
## Install package
End-Process -Name "wireguard" -Match -Force
Install-Program -Path "${Installer}" -Delete
End-Process -Name "wireguard" -Match -Force
## Create shortcut on Public desktop
#Create-Shortcut -Path "${Env:Public}\Desktop\WireGuard.LNK" -TargetPath "${Env:ProgramFiles}\WireGuard\wireguard.exe" -Description "WireGuard: Fast, Modern, Secure VPN Tunnel"
}
Else { LogMsg "The WireGuard installer was not downloaded properly" }
}
Else { LogMsg "Must be an administrator to install WireGuard" }