diff --git a/1-estudio-Install-TacticalRMM-and-RustDesk.ps1 b/1-estudio-Install-TacticalRMM-and-RustDesk.ps1 index 9e43efd..0d8451d 100644 --- a/1-estudio-Install-TacticalRMM-and-RustDesk.ps1 +++ b/1-estudio-Install-TacticalRMM-and-RustDesk.ps1 @@ -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..."