TestimoX

API Reference

Class

GpoRemovalService

Namespace ADPlayground.Gpo
Assembly ADPlayground
Modifiers static

Performs optional backup and removal of GPOs using library services.

Inheritance

  • Object
  • GpoRemovalService

Methods

public static Boolean TryBackup(GpoRemovalCandidate c, DirectoryInfo backupDir, String initiatedBy, String comment, out FileInfo backupFile) #
Returns: Boolean

Attempts to back up a GPO to the specified directory. Returns true on success; false on failure.

Parameters

c ADPlayground.Gpo.GpoRemovalCandidate requiredposition: 0
Candidate describing the target GPO.
backupDir System.IO.DirectoryInfo requiredposition: 1
Directory where the backup should be created.
initiatedBy System.String requiredposition: 2
Name recorded in the backup metadata as the initiator.
comment System.String requiredposition: 3
Optional comment stored with the backup.
backupFile System.IO.FileInfo@ requiredposition: 4
When successful, receives the created backup file path.
public static Boolean TryDelete(GpoRemovalCandidate c) #
Returns: Boolean

Deletes a GPO via AD and SYSVOL using existing cleaner routines. Returns true on success.

Parameters

c ADPlayground.Gpo.GpoRemovalCandidate requiredposition: 0
Candidate describing the target GPO.