diff --git a/8x8_Work_Updater.ps1 b/8x8_Work_Updater.ps1 index e127a53..20cbc58 100644 --- a/8x8_Work_Updater.ps1 +++ b/8x8_Work_Updater.ps1 @@ -11,6 +11,11 @@ if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdenti exit 1 } +# Load required .NET assemblies for Windows PowerShell 5.1 +Add-Type -AssemblyName System.Windows.Forms +Add-Type -AssemblyName System.Drawing +Add-Type -AssemblyName System.Net.Http + # Use C:\ProgramData\ so standard users have full read/execute access $workDir = "C:\ProgramData\JCT600_8x8Update" $flagFile = Join-Path $workDir "8x8_Update_Proceed.flag"