API Reference
PolicyValueFormat
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) #StringFormats a nullable boolean as "1"/"0"; returns null when not set.
Parameters
- value System.Nullable{System.Boolean}
public static String Decimal(Nullable<UInt32> value) #StringFormats a nullable DWORD as decimal; returns null when not set.
Parameters
- value System.Nullable{System.UInt32}
public static String DefenderScheduleDay(Nullable<UInt32> v) #StringDefender 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}
public static String DefenderScheduleTimeMinutes(Nullable<UInt32> minutes) #StringDefender scheduled time in minutes from midnight → "HH:mm" (24h). Returns null when not set.
Parameters
- minutes System.Nullable{System.UInt32}
public static String DisabledEnabled(Nullable<Boolean> disabled) #StringFormats a disabled/enabled state as human text; when unknown returns null.
Parameters
- disabled System.Nullable{System.Boolean}
public static String EnabledDisabled(Nullable<Boolean> enabled) #StringFormats a nullable boolean as "Enabled"/"Disabled"; returns null when not set.
Parameters
- enabled System.Nullable{System.Boolean}
public static String Hex(Nullable<UInt32> value) #StringFormats a nullable DWORD as 0x-prefixed hexadecimal; returns null when not set.
Parameters
- value System.Nullable{System.UInt32}
public static String LmLevel(Int32 level) #StringReturns a friendly label for LMCompatibilityLevel (-1 = not configured).
Parameters
- level System.Int32
public static String NtlmSecFlags(Nullable<UInt32> value) #StringFriendly 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}
public static String RefusePasswordChange(Nullable<UInt32> dword) #StringFormats RefusePasswordChange DWORD: 1 = Refuse, 0 = Allow; null when not set.
Parameters
- dword System.Nullable{System.UInt32}
public static String RequiredNotRequired(Nullable<Boolean> required) #StringFormats SMB signing as "Required"/"Not required".
Parameters
- required System.Nullable{System.Boolean}
public static String RestrictNtlmIncoming(Int32 value) #StringFriendly 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
public static String RestrictNtlmOutgoing(Int32 value) #StringFriendly 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
public static String YesNo(Nullable<Boolean> value) #StringFormats a nullable boolean as "Yes"/"No"; returns null when not set.
Parameters
- value System.Nullable{System.Boolean}