Created
February 27, 2018 20:52
-
-
Save PlagueHO/491c0b2ba0a419004fb39187c0f8915f to your computer and use it in GitHub Desktop.
Enable TLS 1.2 support in PowerShell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (-not ([Net.ServicePointManager]::SecurityProtocol).ToString().Contains([Net.SecurityProtocolType]::Tls12)) { | |
| [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol.toString() + ', ' + [Net.SecurityProtocolType]::Tls12 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment