API Reference
Class
GpoListApi
PowerShell-like facade for quick GPO listing across domain/forest.
Inheritance
- Object
- GpoListApi
Methods
public static IReadOnlyList<GpoListItem> Get(String domain = null, Boolean includeSites = true) #Returns:
IReadOnlyList<GpoListItem>Lists GPOs for a single domain.
Parameters
- domain System.String = null
- DNS domain name (null uses current domain).
- includeSites System.Boolean = true
- Currently unused (site links are always analyzed).
Returns
List of GPO list items with link state.
public static IReadOnlyList<GpoListItem> GetForest(String forest = null, Boolean includeSites = true) #Returns:
IReadOnlyList<GpoListItem>Lists GPOs across a forest.
Parameters
- forest System.String = null
- Forest DNS name (null uses current forest).
- includeSites System.Boolean = true
- Currently unused.
Returns
List of GPO list items across domains with link state.