Advertisement
hballiance

Untitled

Sep 25th, 2018
1,068
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $TLS1dot1 = 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client'
  2. $TLS1dot2 = 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client'
  3. $MicrosoftWinHttp = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp'
  4. $Wow6432Node = 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp'
  5.  
  6. If (!(test-path $TLS1dot1))
  7. {
  8.     New-Item $TLS1dot1 -Force | New-ItemProperty -Name DisabledByDefault -Value 0 -Force
  9. }
  10. else
  11. {
  12.     New-ItemProperty $TLS1dot1 -Name DisabledByDefault -Value 0 -PropertyType Dword -Force
  13. }
  14.  
  15. If (!(test-path $TLS1dot2))
  16. {
  17.     New-Item $TLS1dot2 -Force | New-ItemProperty -Name DisabledByDefault -Value 0 -Force
  18. }
  19. else
  20. {
  21.     New-ItemProperty $TLS1dot2 -Name DisabledByDefault -Value 0 -PropertyType Dword -Force
  22. }
  23.  
  24. ############################################
  25.  
  26. If (!(test-path $MicrosoftWinHttp))
  27. {
  28.     New-Item $MicrosoftWinHttp -Force | New-ItemProperty -Name DefaultSecureProtocols -Value 0xA00 -Force
  29. }
  30. else
  31. {
  32.     New-ItemProperty $MicrosoftWinHttp -Name DefaultSecureProtocols -Value 0xA00 -PropertyType Dword -Force
  33. }
  34.  
  35. If (!(test-path $Wow6432Node))
  36. {
  37.     New-Item $Wow6432Node -Force | New-ItemProperty -Name DefaultSecureProtocols -Value 0xA00 -Force
  38. }
  39. else
  40. {
  41.     New-ItemProperty $Wow6432Node -Name DefaultSecureProtocols -Value 0xA00 -PropertyType Dword -Force
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement