Wednesday, June 15, 2016

Policy Plus - ADMX loading

Today I wrote the first part of Policy Plus: the ADMX loader and parser. The AdmxFile class can load an ADMX file and extract its referenced namespaces, defined products and their versions, supported-on definitions, categories, and policy settings. Policy settings were very challenging because there can be a lot of Registry entries associated with the policy, both attached to the enabled/disabled switch and individual controls. The ADMX format documentation was tricky to navigate, missing one thing, and, in one or two other cases, actually wrong. Hopefully my code will be helpful documentation until I can write up something better.

I successfully loaded some ADMX files and was able to poke around them with Visual Studio's object inspection tools. The next step is to write a loader for the language-specific (ADML) files and then compile all their references into human-readable identifiers.

No comments:

Post a Comment