AdmxParser
.NET-based ADMX/ADML parser library and programmatic Windows policy setting/management framework
Install / Use
/learn @rkttu/AdmxParserREADME
AdmxParser
.NET-based ADMX/ADML parser library
Breaking Changes
From 0.6.7 to 0.7
- Removed
GetMangledMemberNameFromDisplayNameextension methods due to lack of usage.
From 0.6.2 to 0.6.3
- I understand that changing policy settings is the last step in the mechanism, changing the registry. Since the framework does not handle looking up or modifying policies directly, and instead has to make it use the IGroupPolicyObject2 interface, I removed the associated functionality and test cases.
- Removed other unused extension methods.
From 0.5 to 0.6
All types of models and contract interfaces has been removed. Instead, the library now uses auto-generated XML schema classes to represent ADMX/ADML files for accuracy and integrity.
Minimum Requirements
- Requires a platform with .NET Standard 2.0 or later, and Windows Vista+, Windows Server 2008+
- This library does not support ADM files.
- Supported .NET Version: .NET Core 2.0+, .NET 5+, .NET Framework 4.6.1+, Mono 5.4+, UWP 10.0.16299+, Unity 2018.1+
How to use
Loading PolicyDefinitions XML schema
Explore the policy model with C# classes that replicate the ADMX/ADML XML schema prototype.
using AdmxParser;
...
var instance = AdmxDirectory.GetSystemPolicyDefinitions();
await instance.LoadAsync(true);
var admxCollection = instance.LoadedAdmxFiles;
// Use admxCollection variable to investigate system policies.
Parsing ADMX/ADML files
You can explore the changes that will actually be made to your POL file in a preview form.
using AdmxParser;
...
var instance = AdmxDirectory.GetSystemPolicyDefinitions();
await instance.LoadAsync(true);
var models = admxDirectory.ParseModels();
foreach (var eachPolicy in models)
{
// ...
}
XML Schema Notes
- The XML schema used in this library is based on the schema defined in the ADMX File Schema.
- You can regenerate the XML schema classes by running the
xsd.exetool with the parametersPolicyDefinitionFiles.xsd /c /order /eld /edb /l:CS /namespace:AdmxParser.Serialization /nologo.
License
This library follows Apache-2.0 license. See LICENSE file for more information.
Related Skills
node-connect
354.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
