TestimoX

API Reference

Class

GpoCreateService

Namespace ADPlayground.Gpo
Assembly ADPlayground
Modifiers static

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 requiredposition: 0
DNS domain name where the GPO will be created.
displayName System.String requiredposition: 1
Display name of the new GPO.
options ADPlayground.Gpo.GpoCreateService.Options = null optionalposition: 2
Optional creation settings.
cancellationToken System.Threading.CancellationToken = null optionalposition: 3
Cancellation token.

Returns

Reference to the created GPO.