The Group Policy Editor lets you attach comments to policies. Those comments are stored in a file called comment.cmtx alongside the POL file. The CMTX format does not appear to be documented anywhere. Fortunately, it's fairly similar to the ADMX format. It's an XML file (with three unknown bytes tacked onto the beginning). It has a string table for some reason that I don't understand - it's stored in the same file as the policy list, obliterating the possibility of doing an ADML-style separation of objects and texts. There's also an ADMX-like prefix table, though CMTX files don't target any namespace.
The code to load CMTX files and produce a policy-to-text mapping is available on GitHub.
No comments:
Post a Comment