Uninstall-SCVMHostCluster

Uninstalls (destroys) a failover cluster managed by VMM.

Syntax

Uninstall-SCVMHostCluster
         -VMHostCluster <HostCluster>
         [-VMMServer <ServerConnection>]
         [-RunAsynchronously]
         [-PROTipID <Guid>]
         [-JobVariable <String>]
         [<CommonParameters>]
Uninstall-SCVMHostCluster
         -VMHost <Host[]>
         [-VMMServer <ServerConnection>]
         [-RunAsynchronously]
         [-PROTipID <Guid>]
         [-JobVariable <String>]
         [<CommonParameters>]

Description

The Uninstall-SCVMHostCluster cmdlet unclusters the nodes of a Hyper-V host cluster managed by Virtual Machine Manager (VMM). After the cluster has been uninstalled, each host is managed by VMM as a stand-alone host.

You can also use Uninstall-SCVMHostCluster to remove a node from a cluster if you specify the VMHost parameter.

Examples

Example 1: Destroy an existing cluster

PS C:\> $Cluster = Get-SCVMHostCluster -Name "Cluster01"
PS C:\> Uninstall-SCVMHostCluster -VMHostCluster $Cluster

The first command gets the cluster object named Cluster01 and stores the object in the $Cluster variable.

The second command destroys the cluster stored in $Cluster (in this case, Cluster01). After the cluster is destroyed, each host will be managed by VMM as a stand-alone host.

Required Parameters

-VMHost

Specifies an array of virtual machine host objects.

Type:Host[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMHostCluster

Specifies a VMM host cluster object.

Type:HostCluster
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-JobVariable

Specifies that job progress is tracked and stored in the variable named by this parameter.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False