BackupDirectory Class
Contains methods and properties that can be used to query Group Policy object (GPO) backups or Starter GPO backups from a directory.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)
Inheritance Hierarchy
System.Object
Microsoft.GroupPolicy.BackupDirectory
Syntax
public class BackupDirectory
public ref class BackupDirectory
type BackupDirectory = class end
Public Class BackupDirectory
Constructors
Name | Description | |
---|---|---|
BackupDirectory(String, BackupType) | Initializes a new instance of the BackupDirectory class. |
Properties
Name | Description | |
---|---|---|
BackupType | Gets the type of backups that can be retrieved. |
|
Directory | Gets the full path of the file system directory from which backups can be retrieved. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetGpoBackup(Guid) | Retrieves the Group Policy object (GPO) backup that has the specified backup ID (GUID). |
|
GetHashCode() | (Inherited from Object.) |
|
GetStarterGpoBackup(Guid) | Retrieves the Starter Group Policy object (GPO) backup with the specified backup ID (GUID). |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
SearchGpoBackups(GPSearchCriteria) | Searches the directory for Group Policy object (GPO) backups. |
|
SearchStarterGpoBackups(GPSearchCriteria) | Searches the directory for Starter Group Policy object (GPO) backups. |
|
ToString() | (Inherited from Object.) |
Remarks
When you create a BackupDirectory object, you specify the path to the directory that contains the backups, and whether the BackupDirectory object can be used for GPOs or for Starter GPOs.
This class wraps the IGPMBackupDir COM interface.
Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
StarterGpo
StarterGpoCollection
Gpo
GpoCollection
GPSearchCriteria
Microsoft.GroupPolicy Namespace
Return to top