API Reference
Class
GpoCreateService
Creates new Group Policy Objects (GPOs) in a COM-free manner using LDAP and SYSVOL writes.
Inheritance
- Object
- GpoCreateService
Methods
public static Task<GpoRef> CreateAsync(String domainName, String displayName, Options options = null, CancellationToken cancellationToken = null) #Returns:
Task<GpoRef>Creates a new GPO in the specified domain.
Parameters
- domainName System.String
- DNS domain name where the GPO will be created.
- displayName System.String
- Display name of the new GPO.
- options ADPlayground.Gpo.GpoCreateService.Options = null
- Optional creation settings.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token.
Returns
Reference to the created GPO.