When running the Merge-CIPolicy command, any comments in the xml file are stripped out.
e.g. <!-- my comment--> would be removed during merge. This means that any comments will be removed when using the WDAC Wizard to merge files or adding policy rules to an existing xml policy file.
There are a couple of projects on the web that have the ability to preserve comments:
https://github.com/NathanJepson/WDAC-Framework/blob/main/Merge-TrustedWDACRules.psm1
https://github.com/HotCakeX/Harden-Windows-Security/wiki/AppControl-Manager
It would be great if the WDAC Wizard could support this function too.
When running the
Merge-CIPolicycommand, any comments in the xml file are stripped out.e.g.
<!-- my comment-->would be removed during merge. This means that any comments will be removed when using the WDAC Wizard to merge files or adding policy rules to an existing xml policy file.There are a couple of projects on the web that have the ability to preserve comments:
https://github.com/NathanJepson/WDAC-Framework/blob/main/Merge-TrustedWDACRules.psm1
https://github.com/HotCakeX/Harden-Windows-Security/wiki/AppControl-Manager
It would be great if the WDAC Wizard could support this function too.