New-VBRHvADForestDomainRestoreSpec
Short Description
Creates a Hyper-V domain restore specification for a Microsoft Active Directory forest restore.
Applies to
Platform: Hyper-V
Product Edition: Veeam Universal License
Syntax
|
New-VBRHvADForestDomainRestoreSpec [-RestorePoint] <VBRADForestDomainRestorePoint> -Credentials <PSCredential> -Server <CHost> -Path <String> -VMName <String> [-NetworkMapping <VBRHvInstantRecoveryNetworkMappingRule[]>] [<CommonParameters>] |
Detailed Description
This cmdlet creates the VBRADForestDomainRestoreSpec object. This object defines the target settings for restoring a domain controller VM on a Hyper-V host during a Microsoft Active Directory forest restore. Create one specification for each domain controller you want to restore. Use this object with the Start-VBRADForestRestore cmdlet.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
RestorePoint |
Specifies the domain controller restore point to use for the restore operation. |
Accepts the VBRADForestDomainRestorePoint object. To get this object, run the Get-VBRADForestDomainRestorePoint cmdlet. |
True |
0 |
True (ByValue, ByPropertyName) |
|
Credentials |
Specifies the guest OS credentials of the restored domain controller. |
Accepts the PSCredential object. To get this object, run the Get-Credential cmdlet. |
True |
Named |
False |
|
Server |
Specifies the Hyper-V host on which to restore the domain controller VM. |
Accepts the CHost object. To get this object, run the Get-VBRServer cmdlet. |
True |
Named |
False |
|
Path |
Specifies the path to the folder on the Hyper-V host where the domain controller VM files will be stored during the restore. |
String |
True |
Named |
False |
|
VMName |
Specifies the name for the restored domain controller VM. |
String |
True |
Named |
False |
|
NetworkMapping |
Specifies an array of network mapping rules for the restore. Use this parameter to map source networks to networks available on the target Hyper-V host. Network mapping is required when you restore the domain controller VM to a host other than the original one. |
Accepts the VBRHvInstantRecoveryNetworkMappingRule[] object. To get this object, run the New-VBRHvInstantRecoveryNetworkMappingRule cmdlet. |
False |
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 restoring a domain controller VM on a Hyper-V host.
Examples
Example 1. Creating Hyper-V Domain Restore Specification
|
This example shows how to create a domain restore specification for a Hyper-V environment.
Perform the following steps:
Save the result to the $hvSpec variable to use it with other cmdlets. |
Example 2. Creating Hyper-V Domain Restore Specification with Network Mapping
|
This example shows how to create a domain restore specification with network mapping for a Hyper-V environment.
Perform the following steps:
Save the result to the $hvSpec variable to use it with other cmdlets. |
Related Commands