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
System_CAPS_pubmethod BackupDirectory(String, BackupType)

Initializes a new instance of the BackupDirectory class.

Properties

Name Description
System_CAPS_pubproperty BackupType

Gets the type of backups that can be retrieved.

System_CAPS_pubproperty Directory

Gets the full path of the file system directory from which backups can be retrieved.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetGpoBackup(Guid)

Retrieves the Group Policy object (GPO) backup that has the specified backup ID (GUID).

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetStarterGpoBackup(Guid)

Retrieves the Starter Group Policy object (GPO) backup with the specified backup ID (GUID).

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod SearchGpoBackups(GPSearchCriteria)

Searches the directory for Group Policy object (GPO) backups.

System_CAPS_pubmethod SearchStarterGpoBackups(GPSearchCriteria)

Searches the directory for Starter Group Policy object (GPO) backups.

System_CAPS_pubmethod 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