Skip to content

[Feature Request] Preserve Comments in XML Policies #448

@davideverall

Description

@davideverall

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions