add Install-AdobeConnect
update Install-OpenVPN add Install-Wireguard
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
$WireguardVersion = "0.2.3"
|
||||
|
||||
## Make sure we have an administrative token
|
||||
If ( IsAdmin )
|
||||
{
|
||||
If ( Is64bit ) { $bitness = "amd64" } Else { $bitness = "x86" }
|
||||
|
||||
$URL = "https://download.wireguard.com/windows-client/wireguard-${bitness}-${WireguardVersion}.msi"
|
||||
|
||||
## Install package
|
||||
LogMsg "Installing Wireguard v${WireguardVersion} from ${URL}"
|
||||
Try { Start-Process "msiexec.exe" -ArgumentList "/i ${URL} /qn /norestart" }
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
}
|
||||
|
||||
Else { LogMsg "Must be an administrator to install Wireguard" }
|
||||
Reference in New Issue
Block a user