diff --git a/1-estudio-Install-TacticalRMM-and-RustDesk.ps1 b/1-estudio-Install-TacticalRMM-and-RustDesk.ps1 index 92bff7b..7792415 100644 --- a/1-estudio-Install-TacticalRMM-and-RustDesk.ps1 +++ b/1-estudio-Install-TacticalRMM-and-RustDesk.ps1 @@ -29,7 +29,7 @@ function Install-RustDesk { # Download Write-Host "Downloading ScoutIT Remote Support client..." Try { - Invoke-WebRequest -Uri $rustdeskDl -OutFile $msiPath -UseBasicParsing + (New-Object System.Net.WebClient).DownloadFile($rustdeskDl, $msiPath) } Catch { Write-Warning "RustDesk download failed: $($_.Exception.Message)" diff --git a/2-estudio-Install-RustDesk-Standalone.ps1 b/2-estudio-Install-RustDesk-Standalone.ps1 index a150bcd..de518a1 100644 --- a/2-estudio-Install-RustDesk-Standalone.ps1 +++ b/2-estudio-Install-RustDesk-Standalone.ps1 @@ -20,7 +20,7 @@ if ($null -ne $svcCheck) { $msiPath = "$env:SystemRoot\Temp\$rustdeskMsi" Write-Host "Downloading ScoutIT Remote Support client..." Try { - Invoke-WebRequest -Uri $rustdeskDl -OutFile $msiPath -UseBasicParsing + (New-Object System.Net.WebClient).DownloadFile($rustdeskDl, $msiPath) } Catch { Write-Error "Download failed: $($_.Exception.Message)"