fixed Cleanup-SystemTempFiles.ps1 to check for Genetec dump files before cleaning them

added Fix-MicrosoftTeams.ps1
updated Install-Wireguard.ps1 to use automated installer
This commit is contained in:
2020-12-03 17:13:13 -05:00
parent 76148f6b87
commit 8b17d15196
3 changed files with 16 additions and 15 deletions
+7 -9
View File
@@ -1,16 +1,14 @@
$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"
$URL = "https://download.wireguard.com/windows-client/wireguard-installer.exe"
## Install package
LogMsg "Installing Wireguard v${WireguardVersion} from ${URL}"
Try { Start-Process "msiexec.exe" -ArgumentList "/i ${URL} /qn /norestart" }
Catch { LogErr $_.Exception.Message }
$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" }
}
Else { LogMsg "Must be an administrator to install Wireguard" }