--- title: "New-VBRADForestPartialRestoreDomainSpec" 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..." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/new-vbradforestpartialrestoredomainspec.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Data Recovery > Microsoft Active Directory Forest Recovery > New-VBRADForestPartialRestoreDomainSpec" dateModified: "2026-11-06" --- # 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] -DomainCredentials -DcRestoreSpec [] ``` ## Detailed Description This cmdlet creates the [`VBRADForestPartialRestoreDomainSpec`](vbradforestpartialrestoredomainspec.md) 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-VBRADForestPartialRestore`](start-vbradforestpartialrestore.md) cmdlet. Before you run this cmdlet, create a domain controller recovery specification. For VMware environments, run the [`New-VBRViADForestDcRestoreSpec`](new-vbrviadforestdcrestorespec.md) cmdlet. For Hyper-V environments, run the [`New-VBRHvADForestDcRestoreSpec`](new-vbrhvadforestdcrestorespec.md) cmdlet. To recover the domain controller to a new Microsoft Windows server, run the [`New-VBRADForestCleanMachineDcRestoreSpec`](new-vbradforestcleanmachinedcrestorespec.md) cmdlet. ## 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-VBRViADForestDcRestoreSpec, New-VBRHvADForestDcRestoreSpec or New-VBRADForestCleanMachineDcRestoreSpec 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-VBRADForestDomain 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

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Output Object The cmdlet returns the [`VBRADForestPartialRestoreDomainSpec`](vbradforestpartialrestoredomainspec.md) object that defines the domain controller to recover in a domain. ## Examples ::: example ### 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-VBRADForest`](get-vbradforest.md) cmdlet. Save the result to the `$forest` variable. 2. Run the [`Get-VBRADForestDomain`](get-vbradforestdomain.md) 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`](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/get-credential?view=powershell-7.1) 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-VBRADForestPartialRestore`](start-vbradforestpartialrestore.md) cmdlet. ::: ## Related Commands - [`Get-VBRADForest`](get-vbradforest.md) - [`Get-VBRADForestDomain`](get-vbradforestdomain.md) - [`Get-Credential`](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/get-credential?view=powershell-7.5) - [`New-VBRViADForestDcRestoreSpec`](new-vbrviadforestdcrestorespec.md) - [`New-VBRHvADForestDcRestoreSpec`](new-vbrhvadforestdcrestorespec.md) - [`New-VBRADForestCleanMachineDcRestoreSpec`](new-vbradforestcleanmachinedcrestorespec.md) - [`Start-VBRADForestPartialRestore`](start-vbradforestpartialrestore.md)