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

Synopsis

Uninstalls (destroys) a failover cluster managed by VMM.

Syntax

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

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

Detailed Description

The Uninstall-SCVMHostCluster cmdlet unclusters the nodes of a Hyper-V host cluster managed by System Center Virtual Machine Manager (VMM). After the cluster has been uninstalled, each host is managed by VMM as a stand-alone host. Uninstall-SCVMHostCluster can also remove a node from a cluster when used with the VMHost parameter. For more information about Uninstall-SCVMHostCluster, type: "Get-Help Uninstall-SCVMHostCluster -online".

Parameters

-VMHost [<>]

Specifies an array of virtual machine host objects.

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

-VMHostCluster [<>]

Specifies a VMM host cluster object.

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

-JobVariable [<>]

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

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

-PROTipID [<>]

Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

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

-RunAsynchronously [<>]

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

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

-VMMServer [<>]

Specifies a VMM server object.

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

Notes

Examples

1: Destroy an existing cluster.

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