This commit is contained in:
2020-08-30 23:05:07 -04:00
parent 82adef14b5
commit e38f9bd599
18 changed files with 272 additions and 188 deletions
-7
View File
@@ -48,13 +48,6 @@ If ( $CUSTOMER_ID )
Catch { Write-Log $_.Exception.Message }
}
### Setup security and certificate parameters to download from untrusted sources
#[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
#[Net.ServicePointManager]::SecurityProtocol =
# [Net.SecurityProtocolType]::Tls12 -bor `
# [Net.SecurityProtocolType]::Tls11 -bor `
# [Net.SecurityProtocolType]::Tls
## Download the agent installer
Write-Log "Downloading agent installer from: ${AGENT_URL}"
Try { (New-Object System.Net.WebClient).DownloadFile($AGENT_URL, $AGENT_INSTALLER) }