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
|
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. |
|
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 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:
- 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
New-VBRADForestCleanMachineDcRestoreSpeccmdlet. 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.
Save the result to the
$dcSpecvariable 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-HostNew-VBRADForestPartialRestoreDomainSpecCreates a domain recovery specification for a partial Microsoft Active Directory forest recovery.