diff --git a/Install-ManagementAgent.ps1 b/Install-ManagementAgent.ps1 index 9a574d1..ca9100a 100644 --- a/Install-ManagementAgent.ps1 +++ b/Install-ManagementAgent.ps1 @@ -31,9 +31,10 @@ If ( $CUSTOMER_ID ) ## Setup security and certificate parameters to download from untrusted sources [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} - [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls - #[Net.SecurityProtocolType]::Tls12 -bor ` - #[Net.SecurityProtocolType]::Tls11 -bor ` + [Net.ServicePointManager]::SecurityProtocol = + [Net.SecurityProtocolType]::Tls12 -bor ` + [Net.SecurityProtocolType]::Tls11 -bor ` + [Net.SecurityProtocolType]::Tls ## Download the agent installer Try { (New-Object System.Net.WebClient).DownloadFile($AGENT_URL, $AGENT_INSTALLER) }