A: Using Windows PowerShell, far more granular control is available over the planned failover process than if you used the Hyper-V Manager GUI. Here's how to failover using PowerShell:

  1. Shutdown the virtual machine (VM):
    1.     <pre>Stop-VM –VMName &lt;vmname&gt; –ComputerName &lt;Hyper-V Primary server&gt;</pre>
    2.     <br>
  2. Prepare the VM for failover:
    1.     <pre>Start-VMFailover –VMName &lt;vmname&gt; –ComputerName &lt;Hyper-V Primary server&gt; –Prepare</pre>
    2.     <br>
  3. Prepare the VM for failover on the Hyper-V Replica server:
    1.     <pre>Start-VMFailover –VMName &lt;vmname&gt; –ComputerName &lt;Hyper-V Replica server&gt;</pre>
    2.     <br>
  4. Start the VM on the replica and perform any testing:
    1.     <pre>Start-VM –VMName &lt;vmname&gt; –ComputerName &lt;Hyper-V Replica server&gt;</pre>
    2.     <br>
  5. Reverse the replication from the replica server to the primary:

    Set-VMReplication -VMName &lt;vmname&gt; -ComputerName &lt;Hyper-V Replica server&gt; –Reverse