API Reference
Class
Gpo
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:
GpoDetailsGets detailed information for a GPO by id.
Parameters
- domain System.String
- id System.Guid
- admxDirectory System.String = ""
- language System.String = null
- includeAcl System.Boolean = false
- includeTrace System.Boolean = false
public static GpoDetails DetailsByName(String domain, String name, String admxDirectory = "", String language = null, Boolean includeAcl = false, Boolean includeTrace = false) #Returns:
GpoDetailsGets detailed information for a GPO by display name.
Parameters
- domain System.String
- name System.String
- admxDirectory System.String = ""
- language System.String = null
- includeAcl System.Boolean = false
- includeTrace System.Boolean = false
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
- name System.String = null
- id System.Nullable{System.Guid} = null
- options ADPlayground.Gpo.GpoQueryOptions = null
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
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