-
Notifications
You must be signed in to change notification settings - Fork 8
Test‑TlsProtocol
Tests if specified TLS/SSL protocols are enabled on the local machine.
Test-TlsProtocol [-Protocol] <SChannelSslProtocols[]> [-Client] [-Disabled]
[<CommonParameters>]
Tests one or more SCHANNEL protocol keys under
HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols
to determine whether the protocol is enabled or disabled for server-side
or client-side connections.
Returns $true if all specified protocols
match the expected state, or $false if any do not.
Test-TlsProtocol -Protocol Tls12
Tests if TLS 1.2 is enabled for server-side connections.
Test-TlsProtocol -Protocol Tls13 -Client
Tests if TLS 1.3 is enabled for client-side connections.
Test-TlsProtocol -Protocol Tls12 -Disabled
Tests if TLS 1.2 is disabled for server-side connections.
Test-TlsProtocol -Protocol Ssl2, Ssl3 -Disabled
Tests if both SSL 2.0 and SSL 3.0 are disabled for server-side
connections.
Returns $true only if both protocols are disabled.
Test-TlsProtocol -Protocol Tls12 -Client -Disabled
Tests if TLS 1.2 is disabled for client-side connections.
When specified, checks the protocol Client registry key instead of the
default Server key.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseWhen specified, tests that the protocol(s) are disabled. By default the command tests that the protocol(s) are enabled.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseOne or more protocol names to check.
Accepts values from the
[SChannelSslProtocols] enum such as Ssl2,
Ssl3, Tls, Tls11, Tls12, Tls13, Dtls1, Dtls12.
Type: SChannelSslProtocols[]
Parameter Sets: (All)
Aliases:
Accepted values: Ssl2, Ssl3, Tls, Tls11, Tls12, Tls13, DTls1, DTls12
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.