Using:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Taken from
Powershell 3.0 Invoke-WebRequest HTTPS Fails on All Requests.
Using:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Taken from
Powershell 3.0 Invoke-WebRequest HTTPS Fails on All Requests.