Skip to content

Instantly share code, notes, and snippets.

@LukasGibb
Last active February 7, 2023 15:20
Show Gist options
  • Select an option

  • Save LukasGibb/d6a79412f4989076ab152edda7155cd2 to your computer and use it in GitHub Desktop.

Select an option

Save LukasGibb/d6a79412f4989076ab152edda7155cd2 to your computer and use it in GitHub Desktop.
Set Windows to Use Strong TLS Crypto via Powershell
# 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
# set strong cryptography on 64 bit .Net Framework (version 3.5)
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v2.0.50727' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
# set strong cryptography on 32 bit .Net Framework (version 3.5)
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\.NetFramework\v2.0.50727' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
# Copy the blank line above to ensure the last command actually runs when the script is pasted into powershell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment