TestimoX

API Reference

Class

GpoBackupService

Namespace ADPlayground.Gpo
Assembly ADPlayground
Modifiers static

Creates COM-free backups of a GPO (LDAP metadata + SYSVOL content) into a single zip archive with a JSON manifest.

Inheritance

  • Object
  • GpoBackupService

Methods

public static FileInfo Backup(String domainName, Guid gpoId, DirectoryInfo destinationDirectory, String initiatedBy, String comment = null, Options options = null, CancellationToken cancellationToken = null) #
Returns: FileInfo

Creates a backup archive for the specified GPO.

Parameters

domainName System.String requiredposition: 0
DNS domain name that owns the GPO.
gpoId System.Guid requiredposition: 1
GPO identifier.
destinationDirectory System.IO.DirectoryInfo requiredposition: 2
Directory where the backup archive is created.
initiatedBy System.String requiredposition: 3
Name recorded in the manifest as the initiator.
comment System.String = null optionalposition: 4
Optional comment recorded in the manifest.
options ADPlayground.Gpo.GpoBackupService.Options = null optionalposition: 5
Optional inclusion settings.
cancellationToken System.Threading.CancellationToken = null optionalposition: 6
Cancellation token.

Returns

Backup archive file.

public static Task<FileInfo> BackupAsync(String domainName, Guid gpoId, DirectoryInfo destinationDirectory, String initiatedBy, String comment = null, Options options = null, CancellationToken cancellationToken = null) #
Returns: Task<FileInfo>

Creates a backup archive for the specified GPO asynchronously.

Parameters

domainName System.String requiredposition: 0
DNS domain name that owns the GPO.
gpoId System.Guid requiredposition: 1
GPO identifier.
destinationDirectory System.IO.DirectoryInfo requiredposition: 2
Directory where the backup archive is created.
initiatedBy System.String requiredposition: 3
Name recorded in the manifest as the initiator.
comment System.String = null optionalposition: 4
Optional comment recorded in the manifest.
options ADPlayground.Gpo.GpoBackupService.Options = null optionalposition: 5
Optional inclusion settings.
cancellationToken System.Threading.CancellationToken = null optionalposition: 6
Cancellation token.

Returns

Backup archive file.

Fields

public const String ManifestEntryName #

Zip entry name of the manifest within the backup archive.

Value: adx-manifest.json
public const String SysvolEntryPrefix #

Zip entry prefix where SYSVOL content is stored.

Value: sysvol/