PowerShell Logo Small

Stop-VMFailover



This is the built-in help made by Microsoft for the command 'Stop-VMFailover', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Stops failover of a virtual machine.

SYNTAX


Stop-VMFailover [-VMName] <String[]> [-AsJob] [-ComputerName <String[]>] [-PassThru] [<CommonParameters>]
Stop-VMFailover [-VM] <VirtualMachine[]> [-AsJob] [-PassThru] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Stop-VMFailover cmdlet stops failover of a virtual machine. If the virtual machine is running, this cmdlet turns the virtual machine off
and cancels failover. For a test failover, this cmdlet stops the test failover and deletes the test virtual machine. For a planned failover
that has been started on a primary virtual machine, this cmdlet cancels that action and restarts replication, which allows you to start the
primary virtual machine.



<

RELATED LINKS






REMARKS

<

Examples


Example 1

PS C:\> Stop-VMFailover VM01



This example stops failover for a virtual machine named VM01.




Example 2

PS C:\> Stop-VMFailover *



This example stops all running failovers for all the virtual machines on the local Hyper-V host.