Examples/Sample_ConfigureAProtocol.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<#
    .SYNOPSIS
        Configures the 'TLS 1.0' protocol to be disabled on both client and server.
#>

Configuration Sample_ConfigureAProtocol {
    Import-DscResource -ModuleName 'SchannelPolicyDsc'

    Node localhost {
        Protocol "Disable TLS 1.0 Client" {
            Protocol = "TLS 1.0"
            Type = "Client"
            Ensure = "Absent"
        }
        
        Protocol "Disable TLS 1.0 Server" {
            Protocol = "TLS 1.0"
            Type = "Server"
            Ensure = "Absent"
        }
    }
}