API Reference
AdmxProviderCacheService
Builds a normalized on-disk cache of ADMX provider releases that can be validated, searched, and compared with SYSVOL.
Inheritance
- Object
- AdmxProviderCacheService
Methods
public static AdmxProviderFileIdentityIndex BuildFileIdentityIndex(String cacheRoot = null) #AdmxProviderFileIdentityIndexRebuilds the generated provider file identity index from catalog history and cached files.
Parameters
- cacheRoot System.String = null
- Optional cache root. Defaults to ProgramData\ADPlayground\AdmxProviderCache.
Returns
Generated file identity index.
public static AdmxProviderCacheComparison Compare(AdmxProviderCacheComparisonOptions options) #AdmxProviderCacheComparisonCompares a normalized provider cache PolicyDefinitions folder with a destination PolicyDefinitions folder.
Parameters
- options ADPlayground.Gpo.GpoLocal.AdmxProviderCacheComparisonOptions
- Comparison options.
Returns
File-level comparison result.
public static String GetDefaultCacheRoot() #StringReturns the default local ADMX provider cache root.
Returns
ProgramData-based cache path, or a temp path when ProgramData is unavailable.
public static AdmxProviderCatalogEntry GetLatestCatalogEntry(String cacheRoot, String providerName) #AdmxProviderCatalogEntryGets the latest maintained catalog entry for a provider.
Parameters
- cacheRoot System.String
- Optional cache root. Defaults to ProgramData\ADPlayground\AdmxProviderCache.
- providerName System.String
- Provider name to resolve.
Returns
Latest catalog entry, or null when the provider has not been cached.
public static String GetProviderCacheIdentity(AdmxProvider provider, AdmxEdgeChannel edgeChannel) #StringBuilds the catalog/cache identity for a built-in provider and its selected channel.
Parameters
- provider ADPlayground.Gpo.GpoLocal.AdmxProvider
- Built-in ADMX provider.
- edgeChannel ADPlayground.Gpo.GpoLocal.AdmxEdgeChannel
- Edge channel used when provider is Edge.
Returns
Provider identity suitable for cache paths and catalog lookups.
public static AdmxProviderCatalog LoadCatalog(String cacheRoot = null) #AdmxProviderCatalogLoads the maintained provider cache catalog from disk.
Parameters
- cacheRoot System.String = null
- Optional cache root. Defaults to ProgramData\ADPlayground\AdmxProviderCache.
Returns
Catalog with latest entries and refresh history.
public static AdmxProviderFileIdentityIndex LoadFileIdentityIndex(String cacheRoot = null) #AdmxProviderFileIdentityIndexLoads the generated provider file identity index from disk, or returns an empty index when it has not been generated.
Parameters
- cacheRoot System.String = null
- Optional cache root. Defaults to ProgramData\ADPlayground\AdmxProviderCache.
Returns
Generated file identity index.
public static async Task<AdmxProviderCacheResult> SaveAsync(String providerName, AdmxRelease release, AdmxProviderCacheOptions options = null, CancellationToken cancellationToken = null) #Task<AdmxProviderCacheResult>Downloads or harvests a provider release into a normalized PolicyDefinitions cache folder.
Parameters
- providerName System.String
- Displayable provider name used in the cache path.
- release ADPlayground.Gpo.GpoLocal.AdmxRelease
- Release metadata and source assets.
- options ADPlayground.Gpo.GpoLocal.AdmxProviderCacheOptions = null
- Cache refresh options.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token for network and file-copy work.
Returns
Cache result with copied files and health diagnostics.
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object