Skip to content

Instantly share code, notes, and snippets.

function Get-SSLSecurityProtocols {
$protopath = "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols"
& REG.EXE QUERY "$protopath\PCT 1.0\Server" /v Enabled
& REG.EXE QUERY "$protopath\SSL 2.0\Server" /v Enabled
& REG.EXE QUERY "$protopath\SSL 3.0\Server" /v Enabled
& REG.EXE QUERY "$protopath\TLS 1.0\Server" /v Enabled
& REG.EXE QUERY "$protopath\TLS 1.1\Server" /v Enabled
& REG.EXE QUERY "$protopath\TLS 1.1\Server" /v DisabledByDefault
& REG.EXE QUERY "$protopath\TLS 1.2\Server" /v Enabled
& REG.EXE QUERY "$protopath\TLS 1.2\Server" /v DisabledByDefault