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
|
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 |
True |
Named |
False |
|
|
Domain |
Specifies the Active Directory domain to which the domain controller belongs.
Accepts the |
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 |
|
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:
- Run the
Get-VBRADForestReturns Microsoft Active Directory forests in your infrastructure. cmdlet. Save the result to the$forestvariable. - Run the
Get-VBRADForestDomainReturns Active Directory domains within a forest or a restore point. cmdlet. Set the$forestvariable as theADForestparameter value. Save the result to the$domainsvariable. The cmdlet returns all domains in the forest; this example uses the first one ($domains[0]). - Run the
Get-Credentialcmdlet. Enter the credentials of an account with Domain Admin privileges. Save the result to the$domainCredentialsvariable. - Run the
New-VBRADForestPartialRestoreDomainSpeccmdlet. Specify the following parameters:- Set the
$domains[0]variable as theDomainparameter value. - Set the
$domainCredentialsvariable as theDomainCredentialsparameter value. - Set the
$dcSpecvariable as theDcRestoreSpecparameter value.
Save the result to the
$domainSpecvariable to use it with theStart-VBRADForestPartialRestoreStarts a partial Microsoft Active Directory forest recovery. cmdlet. - Set the
Related Commands
Get-VBRADForestReturns Microsoft Active Directory forests in your infrastructure.Get-VBRADForestDomainReturns Active Directory domains within a forest or a restore point.Get-CredentialNew-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.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.Start-VBRADForestPartialRestoreStarts a partial Microsoft Active Directory forest recovery.