New-VBRADForestPartialRestoreDomainSpec

Short Description

Creates a domain recovery specification for a partial Microsoft Active Directory forest recovery.

Platform: VMware, Hyper-V

Product Edition: Veeam Universal License

Syntax

New-VBRADForestPartialRestoreDomainSpec [-Domain] <VBRADForestDomain> -DomainCredentials <PSCredential>

-DcRestoreSpec <VBRADForestDcRestoreSpec[]> [<CommonParameters>]

Detailed Description

This cmdlet creates the VBRADForestPartialRestoreDomainSpec object. This object defines the domain controller that you want to recover in a domain and the credentials that Veeam Backup & Replication uses to recover it during a partial Microsoft Active Directory forest recovery. You can specify only one domain controller for each domain. Use this object with the Start-VBRADForestPartialRestoreStarts a partial Microsoft Active Directory forest recovery. cmdlet.

Before you run this cmdlet, create a domain controller recovery specification. For VMware environments, run the New-VBRViADForestDcRestoreSpecCreates a VMware domain controller recovery specification for a partial Microsoft Active Directory forest recovery. cmdlet. For Hyper-V environments, run the New-VBRHvADForestDcRestoreSpecCreates a Hyper-V domain controller recovery specification for a partial Microsoft Active Directory forest recovery. cmdlet. To recover the domain controller to a new Microsoft Windows server, run the New-VBRADForestCleanMachineDcRestoreSpecCreates a domain controller recovery specification for recovering a domain controller to a new Microsoft Windows server during a partial Microsoft Active Directory forest recovery. cmdlet.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

DcRestoreSpec

Specifies the domain controller recovery specification. You can specify only one domain controller recovery specification for a domain.

Accepts the VBRADForestDcRestoreSpec[] object. To create this object, run the New-VBRViADForestDcRestoreSpecCreates a VMware domain controller recovery specification for a partial Microsoft Active Directory forest recovery., New-VBRHvADForestDcRestoreSpecCreates a Hyper-V domain controller recovery specification for a partial Microsoft Active Directory forest recovery. or New-VBRADForestCleanMachineDcRestoreSpecCreates a domain controller recovery specification for recovering a domain controller to a new Microsoft Windows server during a partial Microsoft Active Directory forest recovery. cmdlet.

VBRADForestDcRestoreSpec[]

True

Named

False

Domain

Specifies the Active Directory domain to which the domain controller belongs.

Accepts the VBRADForestDomain object. To get this object, run the Get-VBRADForestDomainReturns Active Directory domains within a forest or a restore point. cmdlet.

VBRADForestDomain

True

0

True (ByPropertyName, ByValue)

DomainCredentials

Specifies the credentials of an account with Domain Admin privileges. Veeam Backup & Replication uses this account to recover the domain controller.

Accepts the PSCredential object. To get this object, run the Get-Credential cmdlet.

PSCredential

True

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

The cmdlet returns the VBRADForestPartialRestoreDomainSpec object that defines the domain controller to recover in a domain.

Examples

Creating Domain Recovery Specification for Partial Forest Recovery

This example shows how to create a domain recovery specification for a partial forest recovery. The $dcSpec variable contains the domain controller recovery specification that you created in advance.

$forest = Get-VBRADForest

$domains = Get-VBRADForestDomain -ADForest $forest

$domainCredentials = Get-Credential

$domainSpec = New-VBRADForestPartialRestoreDomainSpec -Domain $domains[0] -DomainCredentials $domainCredentials -DcRestoreSpec $dcSpec

Perform the following steps:

  1. Run the Get-VBRADForestReturns Microsoft Active Directory forests in your infrastructure. cmdlet. Save the result to the $forest variable.
  2. Run the Get-VBRADForestDomainReturns Active Directory domains within a forest or a restore point. cmdlet. Set the $forest variable as the ADForest parameter value. Save the result to the $domains variable. The cmdlet returns all domains in the forest; this example uses the first one ($domains[0]).
  3. Run the Get-Credential cmdlet. Enter the credentials of an account with Domain Admin privileges. Save the result to the $domainCredentials variable.
  4. Run the New-VBRADForestPartialRestoreDomainSpec cmdlet. Specify the following parameters:
    • Set the $domains[0] variable as the Domain parameter value.
    • Set the $domainCredentials variable as the DomainCredentials parameter value.
    • Set the $dcSpec variable as the DcRestoreSpec parameter value.

    Save the result to the $domainSpec variable to use it with the Start-VBRADForestPartialRestoreStarts a partial Microsoft Active Directory forest recovery. cmdlet.

Page updated 2026-11-06

Page content applies to build 13.2.0.193