From 104a4219ab1d252b867d6864317a10e1fa6c1855 Mon Sep 17 00:00:00 2001 From: uhlwoogi Date: Tue, 21 Apr 2026 16:38:30 +0000 Subject: [PATCH] Use curl.exe for TacticalRMM download to fix TLS failure WebClient uses the old .NET TLS stack which fails to negotiate with agents.tacticalrmm.com. curl.exe (built into Win10/11/Server2019+) uses the OS TLS stack and handles redirects reliably. Co-Authored-By: Claude Sonnet 4.6 --- 1-estudio-Install-TacticalRMM-and-RustDesk.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/1-estudio-Install-TacticalRMM-and-RustDesk.ps1 b/1-estudio-Install-TacticalRMM-and-RustDesk.ps1 index 9ccbb66..9e43efd 100644 --- a/1-estudio-Install-TacticalRMM-and-RustDesk.ps1 +++ b/1-estudio-Install-TacticalRMM-and-RustDesk.ps1 @@ -177,7 +177,8 @@ If (Get-Service $serviceName -ErrorAction SilentlyContinue) { Try { Write-Host "Downloading TacticalRMM agent..." - (New-Object System.Net.WebClient).DownloadFile($downloadlink, "$OutPath\$output") + & curl.exe -L -s -o "$OutPath\$output" $downloadlink + if ($LASTEXITCODE -ne 0) { throw "curl download failed with exit code $LASTEXITCODE" } Write-Host "Download complete." Start-Process -FilePath "$OutPath\$output" -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES' -Wait Write-Host "Extracting..."