TestimoX

API Reference

Class

GpoCaches

Namespace ADPlayground.Gpo
Assembly ADPlayground
Modifiers static

Provides helpers to warm up and tune in-memory GPO caches used across the library (GUID index, link counts, and link graph). Prewarming reduces LDAP load for runs that execute multiple GPO-related rules.

Inheritance

  • Object
  • GpoCaches

Methods

public static Void ApplyOptions(Nullable<Int32> linkCacheMaxEntries = null, Nullable<Int32> linkEntryTtlMinutes = null, Nullable<Int32> prewarmTtlMinutes = null, Nullable<Int32> guidIndexTtlMinutes = null, Nullable<Int32> linkMapTtlMinutes = null) #
Returns: Void

Applies GPO cache options (link cache size/TTL, prewarm TTL, index TTLs) in a single call. Null arguments are ignored.

Parameters

linkCacheMaxEntries System.Nullable{System.Int32} = null optionalposition: 0
linkEntryTtlMinutes System.Nullable{System.Int32} = null optionalposition: 1
prewarmTtlMinutes System.Nullable{System.Int32} = null optionalposition: 2
guidIndexTtlMinutes System.Nullable{System.Int32} = null optionalposition: 3
linkMapTtlMinutes System.Nullable{System.Int32} = null optionalposition: 4
public static GpoCachesStats GetStats() #
Returns: GpoCachesStats

Returns diagnostic information about the current GPO caches (GUID index + link cache).

public static Void WarmUp(Nullable<Int32> ttlMinutes = null) #
Returns: Void

Builds the forest-wide caches used by GPO queries in a small, fixed number of LDAP calls. Safe to call multiple times; rebuilds when the internal TTL expires.

Parameters

ttlMinutes System.Nullable{System.Int32} = null optionalposition: 0
Optional TTL in minutes for the caches (minimum 1 minute). When null, defaults are used.