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:
1 parent
104a4219ab
commit
20fd7f7f6f
1 file changed
+1
-2
@@ -177,8 +177,7 @@ If (Get-Service $serviceName -ErrorAction SilentlyContinue) {
|
||||
|
||||
Try {
|
||||
Write-Host "Downloading TacticalRMM agent..."
|
||||
& curl.exe -L -s -o "$OutPath\$output" $downloadlink
|
||||
if ($LASTEXITCODE -ne 0) { throw "curl download failed with exit code $LASTEXITCODE" }
|
||||
Start-BitsTransfer -Source $downloadlink -Destination "$OutPath\$output" -ErrorAction Stop
|
||||
Write-Host "Download complete."
|
||||
Start-Process -FilePath "$OutPath\$output" -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES' -Wait
|
||||
Write-Host "Extracting..."
|
||||
|
||||
Reference in new issue
Block a user