Come and Check our BETA Alpha version of Powershellcenter.net
Send me your comment to Powershell@powershellcenter.com

Synopsis

Cancels an ongoing virtual machine resynchronization.

Syntax

Stop-VMReplication [-VMName] <String[]> [-ComputerName <String[]>] [-PassThru] [-ReplicationRelationshipType <VMReplicationRelationshipType>] [-Confirm] [-WhatIf] [<CommonParameters>]

Stop-VMReplication [-VM] <VirtualMachine[]> [-PassThru] [-ReplicationRelationshipType <VMReplicationRelationshipType>] [-Confirm] [-WhatIf] [<CommonParameters>]

Stop-VMReplication [-VMReplication] <VMReplication[]> [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Stop-VMReplication cmdlet cancels an ongoing virtual machine resynchronization.

Parameters

-ComputerName [<String[]>]

Specifies one or more Hyper-V hosts on which the ongoing virtual machine resynchronization is to be stopped. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer

Synopsis

Stops an ongoing initial replication.

Syntax

Stop-VMInitialReplication [-VMName] <String[]> [-ComputerName <String[]>] [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]

Stop-VMInitialReplication [-VM] <VirtualMachine[]> [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]

Stop-VMInitialReplication [-VMReplication] <VMReplication[]> [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Stop-VMInitialReplication cmdlet stops an ongoing initial replication that uses either a virtual machine restored from backup or the network. It does not stop an initial replication that uses external media. For an initial replication that uses external media, you can use this cmdlet to stop the export, which returns the virtual machine to a pending state. After an export is finished, the initial replication cannot be stopped.

Parameters

-ComputerName [<String[]>]

Specifies one or more Hyper-V hosts on which an ongoing initial replication is to be stopped. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer

Synopsis

Shuts down, turns off, or saves a virtual machine.

Syntax

Stop-VM [-Name] <String[]> [-AsJob] [-ComputerName <String[]>] [-Force] [-Passthru] [-Save] [-TurnOff] [-Confirm] [-WhatIf] [<CommonParameters>]

Stop-VM [-VM] <VirtualMachine[]> [-AsJob] [-Force] [-Passthru] [-Save] [-TurnOff] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Stop-VM cmdlet shuts down, turns off, or saves a virtual machine.

Parameters

-AsJob [<SwitchParameter>]

Specifies that the cmdlet is to be run as a background job.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-ComputerName [<String[]>]

Specifies one or more Hyper-V hosts on which a virtual machine is to be shut down. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer

Synopsis

Stops failover of a virtual machine.

Syntax

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

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

Detailed 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.

Parameters

-AsJob [<SwitchParameter>]

Runs the cmdlet as a background job.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-ComputerName [<String[]>]

Specifies one or more hosts on which to cancel the failover of a virtual machine. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer

Synopsis

Starts failover on a virtual machine.

Syntax

Start-VMFailover [-VMName] <String[]> [-AsJob] [-ComputerName <String[]>] [-PassThru] [-Prepare] [-Confirm] [-WhatIf] [<CommonParameters>]

Start-VMFailover [-VMName] <String[]> [-AsJob] [-ComputerName <String[]>] [-PassThru] -AsTest [-Confirm] [-WhatIf] [<CommonParameters>]

Start-VMFailover [-VMRecoverySnapshot] <VMSnapshot> [-AsJob] [-PassThru] -AsTest [-Confirm] [-WhatIf] [<CommonParameters>]

Start-VMFailover [-VM] <VirtualMachine[]> [-AsJob] [-PassThru] -AsTest [-Confirm] [-WhatIf] [<CommonParameters>]

Start-VMFailover [-VM] <VirtualMachine[]> [-AsJob] [-PassThru] [-Prepare] [-Confirm] [-WhatIf] [<CommonParameters>]

Start-VMFailover [-VMRecoverySnapshot] <VMSnapshot> [-AsJob] [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Start-VMFailover cmdlet can be used for the following tasks: -- Fail over a Replica virtual machine to a chosen recovery point. -- Start a planned failover on a primary virtual machine. -- Create a test virtual machine on a Replica virtual machine.

Parameters

-AsJob [<SwitchParameter>]

Runs the command as a background job.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-AsTest [<SwitchParameter>]

Creates a test virtual machine using the chosen recovery point. You can use a test virtual machine to validate a Replica virtual machine. To stop a test failover, use the Stop-VMFailover cmdlet.

Required?   true
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-ComputerName [<String[]>]

Specifies one or more Hyper-V hosts on which failover is to be started. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer