Share via


BackupDirectory.GetGpoBackup Method (Guid)

 

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

Namespace:   Microsoft.GroupPolicy
Assembly:  Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)

Syntax

public GpoBackup GetGpoBackup(
    Guid backupId
)
public:
GpoBackup^ GetGpoBackup(
    Guid backupId
)
member GetGpoBackup : 
        backupId:Guid -> GpoBackup
Public Function GetGpoBackup (
    backupId As Guid
) As GpoBackup

Parameters

  • backupId
    Type: System.Guid

    The backup ID (GUID) of the GPO backup.

Return Value

Type: Microsoft.GroupPolicy.GpoBackup

Returns GpoBackup. The GPO backup.

Exceptions

Exception Condition
ArgumentException

A GPO backup with the specified backupId could not be found in the BackupDirectory.Directory.

Remarks

The backup ID is the ID of the backed-up GPO (the value of the GpoBackup.Id property), not the ID of the Starter GPO from which the backup was created (the GpoBackup.GpoId property).

See Also

BackupDirectory Class
Microsoft.GroupPolicy Namespace

Return to top