CmdID / PowerShell / Cmdlets / Restore
Restore-DatabaseAvailabilityGroup
Use the Restore-DatabaseAvailabilityGroup cmdlet as part of a datacenter switchover of a database availability group (DAG). Exchange PowerShell reference
From the Exchange PowerShell reference 8 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the name of the DAG being manipulated.-ActiveDirectorySiteThe ActiveDirectorySite parameter specifies the site containing the DAG members to be restored.-AlternateWitnessDirectoryThe AlternateWitnessDirectory parameter specifies the name of an alternate directory used to store witness data.-AlternateWitnessServerThe AlternateWitnessServer parameter specifies the name of a new witness server for the DAG as part of a site activation process.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-DomainControllerThe DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory.-UsePrimaryWitnessServerThe UsePrimaryWitnessServer switch specifies that the DAG's currently configured witness server should be used if a witness is needed by the DAG members that are being activated.-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.