API Reference
Class
PolicyValueCoercion
Helpers to coerce effective policy values that may be stored as either DWORD or string (e.g., some environments store numeric policy actions as REG_SZ like "1" or "0x6"). Centralizing this logic avoids per‑rule parsing drift and keeps attribution consistent.
Inheritance
- Object
- PolicyValueCoercion
Methods
AsUInt32 2 overloads
AsUInt32(ADPlayground.Gpo.Policy.GpoEffectivePolicyReader.EffectivePolicyValueRecord v) #Returns a 32-bit unsigned integer from an EffectivePolicyValueRecord when either the native DWORD is present or the string contains a decimal/hex number (0x-prefix allowed).
Parameters
- v ADPlayground.Gpo.Policy.GpoEffectivePolicyReader.EffectivePolicyValueRecord
- Effective policy value record.
Returns
Parsed value or null when not present or unparsable.
AsUInt32(ADPlayground.Gpo.Policy.EffectivePolicyBatchService.Row r) #Returns a 32-bit unsigned integer from a batch Row when either the native DWORD is present or the string contains a decimal/hex number.
Parameters
- r ADPlayground.Gpo.Policy.EffectivePolicyBatchService.Row
- Batch row.
Returns
Parsed value or null.