Skip to content

Windows 10 install stuck at GitHub download – missing TLS 1.2 setting in WindowsAgentAIOInstall.ps1 #103

@aldoexpert

Description

@aldoexpert

Description

When running the WindowsAgentAIOInstall.ps1 script on Windows 10, the installation gets stuck at the step:

Downloading RustDesk from GitHub...

Actual behavior

  • The script fails with:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions