AskTechGurus Get help now →

PowerShell & Scripting Errors

PowerShell web request fails: 'Could not create SSL/TLS secure channel'

A script that downloads files or calls an API with Invoke-WebRequest or Invoke-RestMethod fails with a secure channel error, typically on older servers or Windows PowerShell 5.1.

What you’re seeing

  • Scripts stop with 'The request was aborted: Could not create SSL/TLS secure channel'.
  • Downloading a file or calling a vendor API from PowerShell fails, while the same URL opens in a browser.
  • The error shows up on older servers such as Windows Server 2012 R2 or 2016 but not on newer PCs.
  • Installing modules from the PowerShell Gallery fails with a similar connection error.
  • The script worked for years and started failing after the remote site changed its security.

Common causes

Every environment is different, but these are the causes our engineers find most often:

  • Windows PowerShell 5.1 on older systems defaults to TLS 1.0 or 1.1, which most websites and APIs no longer accept.
  • The .NET Framework on the server isn't configured to use strong cryptography by default.
  • TLS 1.2 or 1.3 is disabled or not fully supported on an older version of Windows.
  • The server is missing root or intermediate certificates needed to trust the remote site.
  • A proxy or firewall that inspects traffic breaks the secure connection.

Why it matters

Many quiet but important jobs run on PowerShell: downloading updates, sending data to accounting or payroll systems, pulling reports or backing up configurations. When they fail with a TLS error, those jobs stop without anyone noticing until data is missing. Older servers that hit this are often also missing other security updates, which is a broader risk. Quick fixes found online sometimes weaken security for everything on the server.

How AskTechGurus fixes it

Skip the trial and error. A certified engineer works on your actual system, finds the root cause, and fixes it properly.

Tell us what’s happening

Submit a ticket in about two minutes. Paste the error, describe what changed, and pick your tier. No charge to submit.

A certified engineer diagnoses it

A vetted, US-based systems engineer claims your ticket, usually within minutes during business hours, and investigates over a secure remote session you can watch and end at any time.

Fixed and verified with you

The engineer resolves the root cause and confirms with you that it’s working. You don’t just get a workaround, and you get a plain-English summary of what was wrong.

Pay only when it’s resolved

Fixed price from $99, invoiced only after you approve the fix. If it isn’t resolved, you don’t pay.

Frequently asked questions

Why does the browser work but PowerShell doesn't?

Modern browsers use their own up-to-date security settings, while Windows PowerShell 5.1 relies on older .NET defaults that may not support current TLS versions.

Is the older server a problem in itself?

Often, yes. Servers old enough to hit this error may be near or past end of support, so it's worth reviewing them while fixing the script.

Can AskTechGurus help?

Yes. A certified US engineer reviews the server's security settings and script over a secure remote session. Pricing starts at $99, and you pay only when it's resolved.

Still stuck? Let a pro take it from here.

AskTechGurus connects you with vetted, US-based systems engineers who fix this every day. No call centers, no scripts, no surprise bills.

Start now →