New-VBRADForestCleanMachineDcRestoreSpec

Short Description

Creates a domain controller recovery specification for recovering a domain controller to a new Microsoft Windows server during a partial Microsoft Active Directory forest recovery.

Platform: VMware, Hyper-V

Product Edition: Veeam Universal License

Syntax

New-VBRADForestCleanMachineDcRestoreSpec [-RestorePoint] <VBRADForestDomainRestorePoint>

-TargetMachine <String> -LocalCredentials <PSCredential> -DsrmPassword <SecureString> [<CommonParameters>]

Detailed Description

This cmdlet creates the VBRADForestDcRestoreSpec object. This object defines the target settings for recovering a domain controller to a new Microsoft Windows server during a partial Microsoft Active Directory forest recovery. The target server must have a freshly installed operating system. Use this object with the New-VBRADForestPartialRestoreDomainSpecCreates a domain recovery specification for a partial Microsoft Active Directory forest recovery. cmdlet.

To recover a domain controller as a VM, run the New-VBRViADForestDcRestoreSpecCreates a VMware domain controller recovery specification for a partial Microsoft Active Directory forest recovery. cmdlet for VMware environments or the New-VBRHvADForestDcRestoreSpecCreates a Hyper-V domain controller recovery specification for a partial Microsoft Active Directory forest recovery. cmdlet for Hyper-V environments.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

DsrmPassword

Specifies a secure string that contains the Directory Services Restore Mode (DSRM) password for the recovered domain controller.

SecureString

True

Named

False

LocalCredentials

Specifies the credentials of an account with local administrator privileges on the target server. Veeam Backup & Replication uses this account to connect to the target server through the ADMIN$ administrative share.

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

PSCredential

True

Named

False

RestorePoint

Specifies the domain controller restore point to use for the recovery operation.

Accepts the VBRADForestDomainRestorePoint object. To get this object, run the Get-VBRADForestDomainRestorePointReturns restore points for an Active Directory domain. cmdlet.

VBRADForestDomainRestorePoint

True

0

True (ByPropertyName, ByValue)

TargetMachine

Specifies the DNS name or IP address of the new Microsoft Windows server to which the domain controller will be recovered. The server must have a freshly installed operating system. You can assign only one domain controller to a server.

String

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 VBRADForestDcRestoreSpec object that defines the target settings for recovering a domain controller to a new Microsoft Windows server.

Examples

Creating Domain Controller Recovery Specification for New Windows Server

This example shows how to create a domain controller recovery specification for recovering a domain controller to a new Microsoft Windows server.

$forest = Get-VBRADForest

$domain = Get-VBRADForestDomain -ADForest $forest

$domainRestorePoint = Get-VBRADForestDomainRestorePoint -Domain $domain

$localCredentials = Get-Credential

$dsrmPassword = Read-Host -Prompt "Enter DSRM password" -AsSecureString

$dcSpec = New-VBRADForestCleanMachineDcRestoreSpec -RestorePoint $domainRestorePoint[0] -TargetMachine "srv01.tech.local" -LocalCredentials $localCredentials -DsrmPassword $dsrmPassword

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 $domain variable.
  3. Run the Get-VBRADForestDomainRestorePointReturns restore points for an Active Directory domain. cmdlet. Set the $domain variable as the Domain parameter value. Save the result to the $domainRestorePoint variable. The cmdlet returns an array of restore points (points in time); this example uses the first one ($domainRestorePoint[0]).
  4. Run the Get-Credential cmdlet. Enter the credentials of an account with local administrator privileges on the target server. Save the result to the $localCredentials variable.
  5. Run the Read-Host cmdlet. Specify the message that the console will display as a prompt. Provide the AsSecureString parameter. Save the result to the $dsrmPassword variable.
  6. Run the New-VBRADForestCleanMachineDcRestoreSpec cmdlet. Specify the following parameters:
    • Set the $domainRestorePoint[0] variable as the RestorePoint parameter value.
    • Specify the TargetMachine parameter value.
    • Set the $localCredentials variable as the LocalCredentials parameter value.
    • Set the $dsrmPassword variable as the DsrmPassword parameter value.

    Save the result to the $dcSpec variable to use it with other cmdlets.

Page updated 2026-11-06

Page content applies to build 13.2.0.193