TestimoX

API Reference

Class

GpoApi

Namespace ADPlayground.Gpo
Assembly ADPlayground
Modifiers static

PowerShell-like facade for GPO retrieval. Returns typed GPO infos.

Inheritance

  • Object
  • GpoApi

Methods

public static IReadOnlyList<GpoInfo> Get(String domain, String name = null, Nullable<Guid> id = null, GpoQueryOptions options = null) #
Returns: IReadOnlyList<GpoInfo>

Retrieves GPOs for a domain with optional filters by name or ID.

Parameters

domain System.String requiredposition: 0
DNS domain name to query.
name System.String = null optionalposition: 1
Optional display name filter.
id System.Nullable{System.Guid} = null optionalposition: 2
Optional GPO GUID filter.
options ADPlayground.Gpo.GpoQueryOptions = null optionalposition: 3
Optional query options (domains scope, permissions-only, etc.).

Returns

List of GpoInfo items matching the filters.