You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Attempting to set a binary registry key to 0 will result in the key being set to "zero-length binary value" due to a bug with the registry resource parsing the value of 0 into a binary format.
To Reproduce
Steps to reproduce the behavior:
Create a test configuration containing the following:
Check the HKLM:\System\CurrentControlSet\Control\Lsa registry key, it will be set to "Zero-Length Binary Value."
Set the valuedata to 1, and it will parse correctly, resulting in the key being set to "01"
Regardless of how you attempt to set the "00" value, it will result in the "Zero-Length Binary Value
Expected behavior
HKLM:\System\CurrentControlSet\Control\Lsa registry key should be set to "00"
Screenshots
Additional context
Work-around is importing the xPSDesiredStateConfiguration module and using the xRegistry resource, which will parse the value of "0" into a binary key of "00"
From @JakeDean3631 on July 26, 2018 15:47
Describe the bug
Attempting to set a binary registry key to 0 will result in the key being set to "zero-length binary value" due to a bug with the registry resource parsing the value of 0 into a binary format.
To Reproduce
Steps to reproduce the behavior:
Configuration TestConfig {
}
Expected behavior
HKLM:\System\CurrentControlSet\Control\Lsa registry key should be set to "00"
Screenshots
Additional context
Work-around is importing the xPSDesiredStateConfiguration module and using the xRegistry resource, which will parse the value of "0" into a binary key of "00"
Example:
Configuration TestConfig {
}
Link to the original bug: PowerShell/DscResources#203
Copied from original issue: microsoft/PowerStigDsc#14
The text was updated successfully, but these errors were encountered: