add Install-AdobeConnect
update Install-OpenVPN add Install-Wireguard
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
. 'C:\Users\dyoder\Emberkom\Data\Projects\development\management-scripts\Tools.ps1'
|
||||||
|
|
||||||
|
## Specify the URL to download Adobe Connect from
|
||||||
|
$URL = 'https://download.adobe.com/pub/connect/updaters/meeting/11_0/ConnectApp11_2020_10_26.msi'
|
||||||
|
|
||||||
|
## Install Adobe Connect
|
||||||
|
LogMsg "Installing Adobe Connect from ${URL}"
|
||||||
|
Try { Start-Process "msiexec.exe" -ArgumentList "/i ${URL} /qn /norestart" -Wait }
|
||||||
|
Catch { LogErr $_.Exception.Message }
|
||||||
+1
-7
@@ -10,14 +10,8 @@ If ( IsAdmin )
|
|||||||
## URL for Windows 7
|
## URL for Windows 7
|
||||||
ElseIf ( (IsWindowsVersion -ge "7.0") -and (IsWindowsVersion -lt "10.0") )
|
ElseIf ( (IsWindowsVersion -ge "7.0") -and (IsWindowsVersion -lt "10.0") )
|
||||||
{ $URL = "https://swupdate.openvpn.org/community/releases/openvpn-install-${OpenVPNVersion}-I607-Win7.exe" }
|
{ $URL = "https://swupdate.openvpn.org/community/releases/openvpn-install-${OpenVPNVersion}-I607-Win7.exe" }
|
||||||
|
|
||||||
## Set the local filename
|
|
||||||
$FILE = '{0}{1}' -f (GetTempPath),(Split-Path $URL -Leaf)
|
|
||||||
|
|
||||||
## Download installer
|
|
||||||
$FILE = Download-File -URL $URL -File $FILE
|
|
||||||
|
|
||||||
## Install package
|
## Install package
|
||||||
Install-Program -Path $FILE -Arguments "/S" -Delete
|
Install-Program -Path $(Download-File -URL $URL) -Arguments "/S" -Delete
|
||||||
}
|
}
|
||||||
Else { LogMsg "Must be an administrator to install OpenVPN" }
|
Else { LogMsg "Must be an administrator to install OpenVPN" }
|
||||||
@@ -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