TestimoX

API Reference

Class

AdmxRepository

Namespace ADPlayground.Gpo.GpoLocal
Assembly ADPlayground
Modifiers sealed

Provides cached access to parsed ADMX/ADML data.

Inheritance

  • Object
  • AdmxRepository

Methods

public AdmxDocument Get(String admxPath, String admlPath) #
Returns: AdmxDocument

Gets the parsed document for the specified ADMX and ADML paths.

Parameters

admxPath System.String requiredposition: 0
Path to the ADMX file.
admlPath System.String requiredposition: 1
Path to the ADML file.

Returns

Parsed ADMX document.

public AdmxDocument GetCentralStoreDocument(String domainName, String language = null) #
Returns: AdmxDocument

Loads the domain Central Store (\\<domain>\SYSVOL\<domain>\Policies\PolicyDefinitions) with language fallback.

Parameters

domainName System.String requiredposition: 0
DNS domain name (e.g., corp.example.com).
language System.String = null optionalposition: 1
Preferred language (e.g., en-US). Falls back to en-US, then first available.
public AdmxDocument GetDirectories(IEnumerable<String> directories, String language = null) #
Returns: AdmxDocument

Parses all ADMX files across multiple directories and merges their categories and policies.

Parameters

directories System.Collections.Generic.IEnumerable{System.String} requiredposition: 0
Directories containing ADMX files.
language System.String = null optionalposition: 1
Optional language subfolder for ADML files.
public AdmxDocument GetDirectoriesWithFallback(IEnumerable<String> directories, String language = null) #
Returns: AdmxDocument

Loads multiple directories and merges ADMX/ADML files, falling back across directories to resolve missing ADML resources when necessary.

Parameters

directories System.Collections.Generic.IEnumerable{System.String} requiredposition: 0
Directories to scan for ADMX files.
language System.String = null optionalposition: 1
Preferred language (e.g., en-US). Falls back to en-US, then first available.

Returns

Compiled document merging the provided directories.

public AdmxDocument GetDirectory(String directory, String language = null) #
Returns: AdmxDocument

Parses all ADMX files in the specified directory and merges their categories and policies.

Parameters

directory System.String requiredposition: 0
Directory containing ADMX files.
language System.String = null optionalposition: 1
Optional language subfolder for ADML files. If null, ADML files are expected next to ADMX files.

Returns

Merged ADMX document.

public AdmxDocument GetDirectoryWithFallback(String directory, String language = null) #
Returns: AdmxDocument

Like GetDirectory, but when language is null or no ADMLs are found, falls back to en-US and then any first available language folder.

Parameters

directory System.String requiredposition: 0
language System.String = null optionalposition: 1

Properties

public static AdmxRepository Instance { get; } #

Gets the singleton instance.