Skip to content

Instantly share code, notes, and snippets.

@AshFlaw
Created July 6, 2020 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AshFlaw/8b3dcabe0ce177cc0bd4d15796d02b5d to your computer and use it in GitHub Desktop.
Save AshFlaw/8b3dcabe0ce177cc0bd4d15796d02b5d to your computer and use it in GitHub Desktop.
Permanently set .NET and PowerShell to use TLS1.2
# set strong cryptography on 64 bit .Net Framework (version 4 and above)
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
# set strong cryptography on 32 bit .Net Framework (version 4 and above)
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment