Files
management-scripts/Install-OpenVPN.ps1
T
dyoder 93e53848b6 add Install-AdobeConnect
update Install-OpenVPN
add Install-Wireguard
2020-11-19 17:50:42 -05:00

17 lines
658 B
PowerShell

$OpenVPNVersion = "2.4.7"
## Make sure we have an administrative token
If ( IsAdmin )
{
## URL for Windows 10
If ( IsWindowsVersion -ge "10.0" )
{ $URL = "https://swupdate.openvpn.org/community/releases/openvpn-install-${OpenVPNVersion}-I607-Win10.exe" }
## URL for Windows 7
ElseIf ( (IsWindowsVersion -ge "7.0") -and (IsWindowsVersion -lt "10.0") )
{ $URL = "https://swupdate.openvpn.org/community/releases/openvpn-install-${OpenVPNVersion}-I607-Win7.exe" }
## Install package
Install-Program -Path $(Download-File -URL $URL) -Arguments "/S" -Delete
}
Else { LogMsg "Must be an administrator to install OpenVPN" }