API Reference
Class
GpoRegistryPolicySetExtensions
Extension helpers for reading typed values from GpoRegistryPolicySet.
Inheritance
- Object
- GpoRegistryPolicySetExtensions
Methods
public static Nullable<UInt32> GetDword(GpoRegistryPolicySet set, String keyPath, String valueName) #Returns:
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) #Returns:
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) #Returns:
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) #Returns:
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) #Returns:
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