Examples/Sample_ConfigureAKeyExchangeAlgorithm.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<#
    .SYNOPSIS
        Configures the 'PKCS' key exchange algorithm to be disabled.
#>

Configuration Sample_ConfigureAKeyExchangeAlgorithm {
    Import-DscResource -ModuleName 'SchannelPolicyDsc'

    Node localhost {
        Cipher "Disable PKCS" {
            KeyExchangeAlgorithm = "PKCS"
            Ensure = "Absent"
        }
    }
}