Skip to content
dscbot edited this page Mar 31, 2026 · 6 revisions

Parameters

Parameter Attribute DataType Description Allowed Values
Hash Key String Specifies the Hash to configure MD5, SHA, SHA256, SHA384, SHA512
RebootWhenRequired Write Boolean Specifies if a reboot will be performed when required (Default: False)
State Write String Specifies the state of the specified Hash Enabled, Disabled, Default

Description

This resource is responsible for enabling or disabling hashes.

Examples

Example 1

This example shows how to enable the MD5 hash.

Configuration Example
{
    param ()

    Import-DscResource -ModuleName SChannelDsc

    node localhost
    {
        Hash EnableMD5
        {
            Hash  = 'MD5'
            State = 'Enabled'
        }
    }
}

Example 2

This example shows how to disable the MD5 hash.

Configuration Example
{
    param ()

    Import-DscResource -ModuleName SChannelDsc

    node localhost
    {
        Hash DisableMD5
        {
            Hash  = 'MD5'
            State = 'Disabled'
        }
    }
}

Example 3

This example shows how to reset the MD5 hash to the OS default.

Configuration Example
{
    param ()

    Import-DscResource -ModuleName SChannelDsc

    node localhost
    {
        Hash DisableMD5
        {
            Hash  = 'MD5'
            State = 'Default'
        }
    }
}

Clone this wiki locally