Remove-Cluster
Remove-Cluster
Destroys an existing failover cluster.
構文
Parameter Set: InputObject
Remove-Cluster [[-Cluster] <String> ] [-CleanupAD] [-Force] [-InputObject <PSObject> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Remove-Cluster cmdlet destroys an existing failover cluster. The affected servers will no longer function together as a cluster.
This cmdlet deletes all copies of the cluster configuration database on all cluster nodes.
Note:このコマンドレットは、サーバー コンピューターに Credential Security Service Provider (CredSSP) 認証がない場合、リモートで実行できません。
パラメーター
-CleanupAD
Specifies that when the cluster is destroyed, the objects in Active Directory that are associated with the cluster are removed.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Cluster<String>
Specifies the name of the cluster on which to run this cmdlet. If the input for this parameter is .
or it is omitted, then the cmdlet runs on the local cluster.
エイリアス |
なし |
必須? |
false |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Force
Runs the cmdlet without prompting for confirmation. By default the cmdlet will ask for confirmation from the user before proceeding.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-InputObject<PSObject>
Specifies the cluster to destroy.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
- Microsoft.FailoverClusters.PowerShell.Cluster
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- None
例
Example 1
This example prompts the user for confirmation, then destroys the local failover cluster and removes cluster configuration information from the cluster nodes.
PS C:\> Remove-Cluster
Example 2
This example destroys the local failover cluster and removes cluster configuration information from the cluster nodes. The cmdlet does not prompt for confirmation.
PS C:\> Remove-Cluster -Force
Example 3
This example destroys the cluster named Cluster1, removes cluster configuration information from the cluster nodes, and deletes the cluster objects in Active Directory. The cmdlet does not prompt for confirmation.
PS C:\> Get-Cluster –Name Cluster1 | Remove-Cluster -Force -CleanupAD