TestimoX

API Reference

Class

PolicyValueFormat

Namespace ADPlayground.Gpo.Policy
Assembly ADPlayground
Modifiers static

Common, reusable format helpers for presenting effective policy values in attribution tables and reports. Return null for "not set" so renderers can display a standard placeholder (e.g., "—").

Inheritance

  • Object
  • PolicyValueFormat

Methods

public static String Bool01(Nullable<Boolean> value) #
Returns: String

Formats a nullable boolean as "1"/"0"; returns null when not set.

Parameters

value System.Nullable{System.Boolean} requiredposition: 0
public static String Decimal(Nullable<UInt32> value) #
Returns: String

Formats a nullable DWORD as decimal; returns null when not set.

Parameters

value System.Nullable{System.UInt32} requiredposition: 0
public static String DefenderScheduleDay(Nullable<UInt32> v) #
Returns: String

Defender scheduled scan day mapping: common values to friendly labels. 0 = Every day; 1..7 = Sunday..Saturday. Returns null when not set.

Parameters

v System.Nullable{System.UInt32} requiredposition: 0
public static String DefenderScheduleTimeMinutes(Nullable<UInt32> minutes) #
Returns: String

Defender scheduled time in minutes from midnight → "HH:mm" (24h). Returns null when not set.

Parameters

minutes System.Nullable{System.UInt32} requiredposition: 0
public static String DisabledEnabled(Nullable<Boolean> disabled) #
Returns: String

Formats a disabled/enabled state as human text; when unknown returns null.

Parameters

disabled System.Nullable{System.Boolean} requiredposition: 0
public static String EnabledDisabled(Nullable<Boolean> enabled) #
Returns: String

Formats a nullable boolean as "Enabled"/"Disabled"; returns null when not set.

Parameters

enabled System.Nullable{System.Boolean} requiredposition: 0
public static String Hex(Nullable<UInt32> value) #
Returns: String

Formats a nullable DWORD as 0x-prefixed hexadecimal; returns null when not set.

Parameters

value System.Nullable{System.UInt32} requiredposition: 0
public static String LmLevel(Int32 level) #
Returns: String

Returns a friendly label for LMCompatibilityLevel (-1 = not configured).

Parameters

level System.Int32 requiredposition: 0
public static String NtlmSecFlags(Nullable<UInt32> value) #
Returns: String

Friendly description for NTLM SSP minimum session security flags. Recognizes the common baseline 0x20080000 (Sign+Seal, 128-bit encryption); otherwise prints hex.

Parameters

value System.Nullable{System.UInt32} requiredposition: 0
public static String RefusePasswordChange(Nullable<UInt32> dword) #
Returns: String

Formats RefusePasswordChange DWORD: 1 = Refuse, 0 = Allow; null when not set.

Parameters

dword System.Nullable{System.UInt32} requiredposition: 0
public static String RequiredNotRequired(Nullable<Boolean> required) #
Returns: String

Formats SMB signing as "Required"/"Not required".

Parameters

required System.Nullable{System.Boolean} requiredposition: 0
public static String RestrictNtlmIncoming(Int32 value) #
Returns: String

Friendly description for Restrict NTLM – Incoming NTLM traffic (domain controllers): -1 = not configured, 0 = Allow all, 1 = Deny domain accounts, 2 = Deny all.

Parameters

value System.Int32 requiredposition: 0
public static String RestrictNtlmOutgoing(Int32 value) #
Returns: String

Friendly description for Restrict NTLM – Outgoing NTLM traffic to remote servers: -1 = not configured, 0 = Allow all, 1 = Deny domain accounts, 2 = Deny all.

Parameters

value System.Int32 requiredposition: 0
public static String YesNo(Nullable<Boolean> value) #
Returns: String

Formats a nullable boolean as "Yes"/"No"; returns null when not set.

Parameters

value System.Nullable{System.Boolean} requiredposition: 0