API Reference
Class
GpoBackupPolicyMappingService
Loads Registry.pol files from a GPMC-style backup folder and maps them to ADMX policies.
Inheritance
- Object
- GpoBackupPolicyMappingService
Methods
public static ValueTuple<PolFile, IReadOnlyList<String>> LoadMergedPol(String backupRoot, RegistryPolicyScope scope) #Returns:
ValueTuple<PolFile, IReadOnlyList<String>>Loads and merges Registry.pol files from a backup folder for a given scope.
Parameters
- backupRoot System.String
- Root directory to scan.
- scope ADPlayground.Gpo.Policy.RegistryPolicyScope
- Policy scope to load (Computer/User).
Returns
Merged PolFile and a list of file paths used as sources.
public static GpoBackupPolicyMappingResult MapBackupFolder(String backupRoot, String admxDirectory = null, String language = null, String domainName = null) #Returns:
GpoBackupPolicyMappingResultMaps registry settings from a GPMC-style backup folder (or any folder containing Machine/User Registry.pol) to ADMX policies.
Parameters
- backupRoot System.String
- Root directory of the backup to scan.
- admxDirectory System.String = null
- Optional ADMX repository directory. When null/empty, ADMX sources are resolved via AdmxLocator.
- language System.String = null
- Preferred ADML language (e.g., en-US). Optional.
- domainName System.String = null
- Optional domain name used only for Central Store discovery when admxDirectory is null/empty.
Returns
Mapping results for both Computer and User scopes.