Uninstall-SCVMHostCluster
Uninstalls (destroys) a failover cluster managed by VMM.
Syntax
DestroyCluster
Uninstall-SCVMHostCluster
-VMHostCluster <HostCluster>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
RemoveNodes
Uninstall-SCVMHostCluster
-VMHost <Host[]>
[-VMMServer <ServerConnection>]
[-CleanupDisks]
[-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.
Parameters
-CleanupDisks
{{Fill CleanupDisks Description}}
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
RemoveNodes
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-JobVariable
Specifies that job progress is tracked and stored in the variable named by this parameter.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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.
Parameter properties
Type: | Guid |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-RunAsynchronously
Indicates that the job runs asynchronously so that control returns to the command shell immediately.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-VMHost
Specifies an array of virtual machine host objects.
Parameter properties
Type: | Host[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
RemoveNodes
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-VMHostCluster
Specifies a VMM host cluster object.
Parameter properties
Type: | HostCluster |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
DestroyCluster
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-VMMServer
Specifies a VMM server object.
Parameter properties
Type: | ServerConnection |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.