Uninstall-SCVMHostCluster
卸載 (會終結由 VMM 管理的容錯移轉叢集) 。
Syntax
Uninstall-SCVMHostCluster
-VMHostCluster <HostCluster>
[-VMMServer <ServerConnection>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Uninstall-SCVMHostCluster
-VMHost <Host[]>
[-VMMServer <ServerConnection>]
[-CleanupDisks]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
Uninstall-SCVMHostCluster Cmdlet 會將 Virtual Machine Manager 所管理的 Hyper-V 主機叢集節點取消叢集 (VMM) 。 卸載叢集之後,每個主機都會由 VMM 管理為獨立主機。
如果您指定VMHost參數,您也可以使用Uninstall-SCVMHostCluster從叢集移除節點。
範例
範例 1:終結現有的叢集
PS C:\> $Cluster = Get-SCVMHostCluster -Name "Cluster01"
PS C:\> Uninstall-SCVMHostCluster -VMHostCluster $Cluster
第一個命令會取得名為 Cluster01 的叢集物件,並將物件儲存在$Cluster變數中。
第二個命令會終結儲存在 $Cluster (的叢集,在此案例中為 Cluster01) 。 終結叢集之後,每個主機都會由 VMM 管理為獨立主機。
參數
-CleanupDisks
{{Fill CleanupDisks Description}}
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
指定追蹤工作進度,並將工作進度存放在這個參數命名的變數中。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
指定觸發此動作之 PRO 提示 (PRO 提示的識別碼) 。 此參數可讓您稽核 PRO 秘訣。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
表示作業會以非同步方式執行,讓控制項立即返回命令殼層。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMHost
指定虛擬機器主機物件的陣列。
Type: | Host[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMHostCluster
指定 VMM 主機叢集物件。
Type: | HostCluster |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMMServer
指定 VMM 伺服器物件。
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |