diff --git a/Install-ManagementAgent.ps1 b/Install-ManagementAgent.ps1 index 6252e9d..c53c14b 100644 --- a/Install-ManagementAgent.ps1 +++ b/Install-ManagementAgent.ps1 @@ -30,7 +30,10 @@ If ( $CUSTOMER_ID ) } ## Setup security and certificate parameters to download from untrusted sources - [Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls" + [Net.ServicePointManager]::SecurityProtocol = + [Net.SecurityProtocolType]::Tls12 -bor ` + [Net.SecurityProtocolType]::Tls11 -bor ` + [Net.SecurityProtocolType]::Tls [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} ## Download the agent installer