API Reference
Class
GpoLegacyAdmScanner
Scans SYSVOL for legacy ADM files (pre-ADMX templates) and related artifacts such as admfiles.ini.
Inheritance
- Object
- GpoLegacyAdmScanner
Methods
public static IReadOnlyList<GpoLegacyAdmRow> GetLegacyFiles(String domainName, Guid gpoId, Int32 maxFiles = 10000, String gpoName = null) #Returns:
IReadOnlyList<GpoLegacyAdmRow>Enumerates legacy ADM-related files under a GPO SYSVOL folder.
Parameters
- domainName System.String
- DNS domain name where the GPO resides.
- gpoId System.Guid
- GPO GUID (groupPolicyContainer objectGuid).
- maxFiles System.Int32 = 10000
- Maximum number of files to return.
- gpoName System.String = null
- Optional display name to stamp on returned rows.
public static IReadOnlyList<GpoLegacyAdmRow> GetLegacyFilesForDomain(String domainName, Int32 maxFiles = 200000) #Returns:
IReadOnlyList<GpoLegacyAdmRow>Enumerates legacy ADM-related files under the domain's SYSVOL Policies tree (across all GPOs).
Parameters
- domainName System.String
- DNS domain name owning the SYSVOL share.
- maxFiles System.Int32 = 200000
- Maximum number of files to return.