update
This commit is contained in:
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user