-
Notifications
You must be signed in to change notification settings - Fork 8
Hash
dscbot edited this page Mar 31, 2026
·
6 revisions
| 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
|
This resource is responsible for enabling or disabling hashes.
This example shows how to enable the MD5 hash.
Configuration Example
{
param ()
Import-DscResource -ModuleName SChannelDsc
node localhost
{
Hash EnableMD5
{
Hash = 'MD5'
State = 'Enabled'
}
}
}This example shows how to disable the MD5 hash.
Configuration Example
{
param ()
Import-DscResource -ModuleName SChannelDsc
node localhost
{
Hash DisableMD5
{
Hash = 'MD5'
State = 'Disabled'
}
}
}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'
}
}
}