Repository navigation
KeyExchangeAlgorithm
dscbot edited this page Feb 11, 2022
·
6 revisions
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
| KeyExchangeAlgorithm | Key | String | Specifies the Key Exchange Algorithm to configure |
Diffie-Hellman, ECDH, PKCS
|
| State | Write | String | Specifies the state of the specified Key Exchange Algorithm |
Enabled, Disabled, Default
|
| RebootWhenRequired | Write | Boolean | Specifies if a reboot will be performed when required (Default: False) |
This resource is responsible for enabling or disabling key exchange algorithms.
This example shows how to enable the ECDH key exchange algorithm.
Configuration Example
{
param(
)
Import-DscResource -ModuleName SChannelDsc
node localhost {
KeyExchangeAlgorithm EnableECDH
{
KeyExchangeAlgorithm = "ECDH"
State = "Enabled"
}
}
}This example shows how to disable the ECDH key exchange algorithm.
Configuration Example
{
param(
)
Import-DscResource -ModuleName SChannelDsc
node localhost {
KeyExchangeAlgorithm DisableECDH
{
KeyExchangeAlgorithm = "ECDH"
State = "Disabled"
}
}
}This example shows how to reset the ECDH key exchange algorithm to the OS default.
Configuration Example
{
param(
)
Import-DscResource -ModuleName SChannelDsc
node localhost {
KeyExchangeAlgorithm DisableECDH
{
KeyExchangeAlgorithm = "ECDH"
State = "Default"
}
}
}