Description
When running the WindowsAgentAIOInstall.ps1 script on Windows 10, the installation gets stuck at the step:
Downloading RustDesk from GitHub...
Actual behavior
Invoke-WebRequest : The request was aborted: Could not create SSL/TLS secure channel.
- This happens because GitHub enforces TLS 1.2 or higher.
- By default, PowerShell on Windows 10 may still use TLS 1.0/1.1 if the script does not explicitly set the protocol.
Expected behavior
- The script should successfully download RustDesk from GitHub on Windows 10 without manual intervention.
Possible fix
Add this line at the beginning of WindowsAgentAIOInstall.ps1 before any Invoke-WebRequest call:
powershell [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
This will enforce TLS 1.2 and allow the script to work correctly on Windows 10.
Description
When running the
WindowsAgentAIOInstall.ps1script on Windows 10, the installation gets stuck at the step:Downloading RustDesk from GitHub...Actual behavior
Invoke-WebRequest : The request was aborted: Could not create SSL/TLS secure channel.Expected behavior
Possible fix
Add this line at the beginning of
WindowsAgentAIOInstall.ps1before anyInvoke-WebRequestcall:powershell [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12This will enforce TLS 1.2 and allow the script to work correctly on Windows 10.