Created
September 26, 2018 15:10
-
-
Save NathanTheGr8/7d8972e974ab723d677bded710c8e816 to your computer and use it in GitHub Desktop.
Enabling TLS 1.1 and 1.2. Taken from https://pastebin.com/yH8ZVzM0
This file contains 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
$TLS1dot1 = 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client' | |
$TLS1dot2 = 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client' | |
$MicrosoftWinHttp = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp' | |
$Wow6432Node = 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp' | |
If (!(test-path $TLS1dot1)) | |
{ | |
New-Item $TLS1dot1 -Force | New-ItemProperty -Name DisabledByDefault -Value 0 -Force | |
} | |
else | |
{ | |
New-ItemProperty $TLS1dot1 -Name DisabledByDefault -Value 0 -PropertyType Dword -Force | |
} | |
If (!(test-path $TLS1dot2)) | |
{ | |
New-Item $TLS1dot2 -Force | New-ItemProperty -Name DisabledByDefault -Value 0 -Force | |
} | |
else | |
{ | |
New-ItemProperty $TLS1dot2 -Name DisabledByDefault -Value 0 -PropertyType Dword -Force | |
} | |
############################################ | |
If (!(test-path $MicrosoftWinHttp)) | |
{ | |
New-Item $MicrosoftWinHttp -Force | New-ItemProperty -Name DefaultSecureProtocols -Value 0xA00 -Force | |
} | |
else | |
{ | |
New-ItemProperty $MicrosoftWinHttp -Name DefaultSecureProtocols -Value 0xA00 -PropertyType Dword -Force | |
} | |
If (!(test-path $Wow6432Node)) | |
{ | |
New-Item $Wow6432Node -Force | New-ItemProperty -Name DefaultSecureProtocols -Value 0xA00 -Force | |
} | |
else | |
{ | |
New-ItemProperty $Wow6432Node -Name DefaultSecureProtocols -Value 0xA00 -PropertyType Dword -Force | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment