diff --git a/Task_scripts/Win - PerformWindowsUpdate.ps1 b/Task_scripts/Win - PerformWindowsUpdate.ps1 index cf3678a..934f1e1 100644 --- a/Task_scripts/Win - PerformWindowsUpdate.ps1 +++ b/Task_scripts/Win - PerformWindowsUpdate.ps1 @@ -37,6 +37,9 @@ param( [switch]$Reboot ) +# Enable TLS 1.2 needed for older windows server version +[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; + # Ensure NuGet provider is available (with -Force to avoid prompts) $nugetProvider = Get-PackageProvider -Name NuGet -ListAvailable -ErrorAction SilentlyContinue