Home > Powershell > [PS] Enable TLS 1.2 as default in Powershell

[PS] Enable TLS 1.2 as default in Powershell

Check Supported protocol

[Net.ServicePointManager]::SecurityProtocol

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

 

Change Net Frame to use TLS 1.2

Set-ItemProperty -Path ‘HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319’ -Name ‘SchUseStrongCrypto’ -Value ‘1’ -Type DWord

Set-ItemProperty -Path ‘HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319’ -Name ‘SchUseStrongCrypto’ -Value ‘1’ -Type DWord

 

Categories: Powershell Tags:
  1. No comments yet.
  1. No trackbacks yet.