Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $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
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement