New-VBRADForestCleanMachineDomainRestoreSpec
Short Description
Creates a domain recovery specification for recovering a domain controller to a new Microsoft Windows server during an entire Microsoft Active Directory forest recovery.
Platform: VMware, Hyper-V
Product Edition: Veeam Universal License
Syntax
|
New-VBRADForestCleanMachineDomainRestoreSpec [-RestorePoint] <VBRADForestDomainRestorePoint> -TargetMachine <String> -LocalCredentials <PSCredential> -DsrmPassword <SecureString> -DomainCredentials <PSCredential> [<CommonParameters>] |
Detailed Description
This cmdlet creates the VBRADForestDomainRestoreSpec object. This object defines the target settings for recovering a domain controller to a new Microsoft Windows server during an entire Microsoft Active Directory forest recovery. The target server must have a freshly installed operating system. Create one specification for each domain controller you want to recover. Use this object with the Start-VBRADForestRestoreStarts an entire Microsoft Active Directory forest recovery. cmdlet.
To recover a domain controller as a VM, run the New-VBRViADForestDomainRestoreSpecCreates a VMware domain recovery specification for an entire Microsoft Active Directory forest recovery. cmdlet for VMware environments or the New-VBRHvADForestDomainRestoreSpecCreates a Hyper-V domain recovery specification for an entire Microsoft Active Directory forest recovery. cmdlet for Hyper-V environments.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
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 |
|
DsrmPassword |
Specifies a secure string that contains the Directory Services Restore Mode (DSRM) password for the recovered domain controller. |
|
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
Accepts the |
|
True |
Named |
False |
|
RestorePoint |
Specifies the domain controller restore point to use for the recovery operation.
Accepts the |
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. |
|
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 VBRADForestDomainRestoreSpec object that defines the target settings for recovering a domain controller to a new Microsoft Windows server.
Examples
Creating Domain Recovery Specification for New Windows Server
This example shows how to create a domain 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 $domainCredentials = Get-Credential $cleanSpec = New-VBRADForestCleanMachineDomainRestoreSpec -RestorePoint $domainRestorePoint[0] -TargetMachine "srv01.tech.local" -LocalCredentials $localCredentials -DsrmPassword $dsrmPassword -DomainCredentials $domainCredentials |
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$domainvariable. - Run the
Get-VBRADForestDomainRestorePointReturns restore points for an Active Directory domain. cmdlet. Set the$domainvariable as theDomainparameter value. Save the result to the$domainRestorePointvariable. The cmdlet returns an array of restore points (points in time); this example uses the first one ($domainRestorePoint[0]). - Run the
Get-Credentialcmdlet. Enter the credentials of an account with local administrator privileges on the target server. Save the result to the$localCredentialsvariable. - Run the
Read-Hostcmdlet. Specify the message that the console will display as a prompt. Provide theAsSecureStringparameter. Save the result to the$dsrmPasswordvariable. - Run the
Get-Credentialcmdlet. Enter the credentials of an account with Domain Admin privileges. Save the result to the$domainCredentialsvariable. - Run the
New-VBRADForestCleanMachineDomainRestoreSpeccmdlet. Specify the following parameters:- Set the
$domainRestorePoint[0]variable as theRestorePointparameter value. - Specify the
TargetMachineparameter value. - Set the
$localCredentialsvariable as theLocalCredentialsparameter value. - Set the
$dsrmPasswordvariable as theDsrmPasswordparameter value. - Set the
$domainCredentialsvariable as theDomainCredentialsparameter value.
Save the result to the
$cleanSpecvariable to use it with other cmdlets. - 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-VBRADForestDomainRestorePointReturns restore points for an Active Directory domain.Get-CredentialRead-HostStart-VBRADForestRestoreStarts an entire Microsoft Active Directory forest recovery.