API Reference
Class
GpoRemovalService
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:
BooleanAttempts to back up a GPO to the specified directory. Returns true on success; false on failure.
Parameters
- c ADPlayground.Gpo.GpoRemovalCandidate
- Candidate describing the target GPO.
- backupDir System.IO.DirectoryInfo
- Directory where the backup should be created.
- initiatedBy System.String
- Name recorded in the backup metadata as the initiator.
- comment System.String
- Optional comment stored with the backup.
- backupFile System.IO.FileInfo@
- When successful, receives the created backup file path.
public static Boolean TryDelete(GpoRemovalCandidate c) #Returns:
BooleanDeletes a GPO via AD and SYSVOL using existing cleaner routines. Returns true on success.
Parameters
- c ADPlayground.Gpo.GpoRemovalCandidate
- Candidate describing the target GPO.