API Reference
GpoRegistryPolicySet
Aggregated registry policy entries effective for a given target container.
Inheritance
- Object
- GpoRegistryPolicySet
Constructors
public GpoRegistryPolicySet() #Methods
public RegistryPolicyEntry TryGet(String keyPath, String valueName) #RegistryPolicyEntryReturns the last entry matching the given key/value pair or null when none exists.
Parameters
- keyPath System.String
- valueName System.String
public IEnumerable<RegistryPolicyEntry> UnderKey(String keyPathContains) #IEnumerable<RegistryPolicyEntry>Returns entries whose key path contains the given substring (case-insensitive).
Parameters
- keyPathContains System.String
Inherited Methods
Properties
public String DomainName { get; set; } #Domain DNS name.
public String TargetDistinguishedName { get; set; } #DN of the policy target.
public RegistryPolicyScope Scope { get; set; } #Policy scope used to compute effective data.
public IReadOnlyList<RegistryPolicyEntry> Entries { get; set; } #Effective registry policy entries.
Extension Methods
public static Nullable<UInt32> GetDword(GpoRegistryPolicySet set, String keyPath, String valueName) #Nullable<UInt32>Returns the last DWORD value for the given key/value pair, or null when absent.
Parameters
- set ADPlayground.Gpo.Policy.GpoRegistryPolicySet
- keyPath System.String
- valueName System.String
public static Nullable<UInt32> GetDwordSub(GpoRegistryPolicySet set, String baseKey, String subPath) #Nullable<UInt32>Reads a DWORD using a base key and a value subpath like "SubKey1\\SubKey2\\ValueName".
Parameters
- set ADPlayground.Gpo.Policy.GpoRegistryPolicySet
- baseKey System.String
- subPath System.String
public static RegistryPolicyEntry GetEntry(GpoRegistryPolicySet set, String keyPath, String valueName) #RegistryPolicyEntryReturns the last entry for a given key/value pair (includes GpoId for attribution) or null.
Parameters
- set ADPlayground.Gpo.Policy.GpoRegistryPolicySet
- keyPath System.String
- valueName System.String
public static String GetString(GpoRegistryPolicySet set, String keyPath, String valueName) #StringReturns the last string value for the given key/value pair, or null when absent.
Parameters
- set ADPlayground.Gpo.Policy.GpoRegistryPolicySet
- keyPath System.String
- valueName System.String
public static String GetStringSub(GpoRegistryPolicySet set, String baseKey, String subPath) #StringReads a string using a base key and a value subpath like "SubKey1\\SubKey2\\ValueName".
Parameters
- set ADPlayground.Gpo.Policy.GpoRegistryPolicySet
- baseKey System.String
- subPath System.String