Try Start-BitsTransfer for TacticalRMM download
WebClient and curl both fail with TLS errors (likely SSL inspection proxy or missing root certs). BITS uses WinHTTP with the system cert store which may handle this differently. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
104a4219ab
commit
20fd7f7f6f
@@ -177,8 +177,7 @@ If (Get-Service $serviceName -ErrorAction SilentlyContinue) {
|
|||||||
|
|
||||||
Try {
|
Try {
|
||||||
Write-Host "Downloading TacticalRMM agent..."
|
Write-Host "Downloading TacticalRMM agent..."
|
||||||
& curl.exe -L -s -o "$OutPath\$output" $downloadlink
|
Start-BitsTransfer -Source $downloadlink -Destination "$OutPath\$output" -ErrorAction Stop
|
||||||
if ($LASTEXITCODE -ne 0) { throw "curl download failed with exit code $LASTEXITCODE" }
|
|
||||||
Write-Host "Download complete."
|
Write-Host "Download complete."
|
||||||
Start-Process -FilePath "$OutPath\$output" -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES' -Wait
|
Start-Process -FilePath "$OutPath\$output" -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES' -Wait
|
||||||
Write-Host "Extracting..."
|
Write-Host "Extracting..."
|
||||||
|
|||||||
Reference in New Issue
Block a user