TestimoX

API Reference

Class

Gpo

Namespace ADPlayground.Gpo
Assembly ADPlayground
Modifiers static

PowerShell-like facade for Group Policy. Simple methods: Get, List, Details.

Inheritance

  • Object
  • Gpo

Methods

public static GpoDetails DetailsById(String domain, Guid id, String admxDirectory = "", String language = null, Boolean includeAcl = false, Boolean includeTrace = false) #
Returns: GpoDetails

Gets detailed information for a GPO by id.

Parameters

domain System.String requiredposition: 0
id System.Guid requiredposition: 1
admxDirectory System.String = "" optionalposition: 2
language System.String = null optionalposition: 3
includeAcl System.Boolean = false optionalposition: 4
includeTrace System.Boolean = false optionalposition: 5
public static GpoDetails DetailsByName(String domain, String name, String admxDirectory = "", String language = null, Boolean includeAcl = false, Boolean includeTrace = false) #
Returns: GpoDetails

Gets detailed information for a GPO by display name.

Parameters

domain System.String requiredposition: 0
name System.String requiredposition: 1
admxDirectory System.String = "" optionalposition: 2
language System.String = null optionalposition: 3
includeAcl System.Boolean = false optionalposition: 4
includeTrace System.Boolean = false optionalposition: 5
public static IReadOnlyList<GpoInfo> Get(String domain, String name = null, Nullable<Guid> id = null, GpoQueryOptions options = null) #
Returns: IReadOnlyList<GpoInfo>

Gets GPOs by domain, optionally filtered by name or id.

Parameters

domain System.String requiredposition: 0
name System.String = null optionalposition: 1
id System.Nullable{System.Guid} = null optionalposition: 2
options ADPlayground.Gpo.GpoQueryOptions = null optionalposition: 3
public static IReadOnlyList<GpoListItem> List(String domain) #
Returns: IReadOnlyList<GpoListItem>

Lists GPOs and link state across a domain (includes sites by design).

Parameters

domain System.String requiredposition: 0
public static IReadOnlyList<GpoListItem> ListForest(String forest = null) #
Returns: IReadOnlyList<GpoListItem>

Lists GPOs across a forest (includes sites by design).

Parameters

forest System.String = null optionalposition: 0