From 45550cfb2da261205972ffedfefa7716f8c25be5 Mon Sep 17 00:00:00 2001 From: dyoder Date: Sun, 24 May 2020 15:40:22 -0400 Subject: [PATCH] security protocol syntax update --- Install-ManagementAgent.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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