PowerStig
PowerStig copied to clipboard
Documentation Update for Exceptions
Describe the bug We were attempting to add an exception to a configuration, and followed the documentation for that attribute, however, the documentation needs to be updated to show the desired value is now the actual value required. Using Windows Server 2019 MS resource.
To Reproduce
- Add
Exception = @{'V-1075'= @{'ValueData'='1'} }
to the configuration and the compilation will fail. - Change to
Exception = @{'V-1075' = '1'}
and the configuration will compile successfully.
Also looks like the WindowsServer resource documentation needs updating as well:
- Exception Parameter in the table at https://github.com/Microsoft/PowerStig/wiki/WindowsServer
- Example use of Exceptions: https://github.com/Microsoft/PowerStig/wiki/WindowsServer#apply-the-windows-server-stig-to-a-node-but-override-a-rule-value
@devopsjesus - Could you please share your entire configuration with us for reproduction. The rule id that you reference is not used in the 2019 MS STIG. I have tested the current documation and the formatting appears to be correct.
Here is a config example that compiles with current codebase - Resulting mof with exception