Mapping Cluster.exe Commands to Windows PowerShell Cmdlets for Failover Clusters
Published: October 1, 2009
Updated: October 1, 2009
Applies To: Windows Server 2008 R2
This topic maps Cluster.exe commands to Windows PowerShell cmdlets and commands for failover clusters running Windows Server® 2008 R2. Although Cluster.exe is included in Windows Server 2008 R2, Microsoft's intention is to deprecate it in favor of Windows PowerShell. Therefore, we recommend that customers who want to use a command-line interface for failover clustering learn about Windows PowerShell, and change scripts over to use Windows PowerShell.
For information about using Windows PowerShell, see Additional references, later in this topic.
This topic contains sections that cover the following commands:
-
Cluster commands and equivalent Windows PowerShell cmdlets
-
Cluster node commands and equivalent Windows PowerShell cmdlets
-
Cluster group commands and equivalent Windows PowerShell cmdlets
-
Cluster resource commands and equivalent Windows PowerShell cmdlets
-
Cluster network commands, cluster netinterface commands, and equivalent Windows PowerShell cmdlets
-
Cluster resourcetype commands and equivalent Windows PowerShell cmdlets
In the following table, each cluster command is mapped to the Windows PowerShell equivalent.
| Command | PowerShell command equivalent |
|---|---|
|
cluster /prop |
For more information, see: Get-Cluster (http://go.microsoft.com/fwlink/?LinkId=143782) |
|
cluster /create |
For more information, see: New-Cluster (http://go.microsoft.com/fwlink/?LinkId=143803) |
|
cluster /destroy |
For more information, see: Remove-Cluster (http://go.microsoft.com/fwlink/?LinkId=143804) |
|
cluster /add |
For more information, see: Add-ClusterNode (http://go.microsoft.com/fwlink/?LinkId=143771) |
|
cluster /shutdown |
For more information, see: Stop-Cluster (http://go.microsoft.com/fwlink/?LinkId=143824) |
|
cluster /rename |
For more information, see: Get-Cluster (http://go.microsoft.com/fwlink/?LinkId=143782) |
|
cluster /quorum |
For more information, see:
|
In the following table, each cluster node command is mapped to the Windows PowerShell equivalent.
| Command | PowerShell command equivalent |
|---|---|
|
cluster node /status |
For more information, see: Get-ClusterNode (http://go.microsoft.com/fwlink/?LinkId=143789) |
|
cluster node /prop |
For more information, see: Get-ClusterNode (http://go.microsoft.com/fwlink/?LinkId=143789) |
|
cluster node /pause |
For more information, see: Suspend-ClusterNode (http://go.microsoft.com/fwlink/?LinkId=143828) |
|
cluster node /resume |
For more information, see: Resume-ClusterNode (http://go.microsoft.com/fwlink/?LinkId=143813) |
|
cluster node /start |
For more information, see: Start-ClusterNode (http://go.microsoft.com/fwlink/?LinkId=143822) (For the net start clussvc /forcequorum command, the PowerShell equivalent is Start-ClusterNode with the -FixQuorum option.) |
|
cluster node /stop |
For more information, see: Stop-ClusterNode (http://go.microsoft.com/fwlink/?LinkId=143826) |
|
cluster node /evict |
For more information, see: Remove-ClusterNode (http://go.microsoft.com/fwlink/?LinkId=143807) |
|
cluster node /forcecleanup |
For more information, see: Clear-ClusterNode (http://go.microsoft.com/fwlink/?LinkId=143781) |
In the following table, each cluster group command is mapped to the Windows PowerShell equivalent.
| Command | PowerShell command equivalent |
|---|---|
|
cluster group |
For more information, see: Get-ClusterGroup (http://go.microsoft.com/fwlink/?LinkId=143785) |
|
cluster group /prop |
For more information, see: Get-ClusterGroup (http://go.microsoft.com/fwlink/?LinkId=143785) |
|
cluster group <groupname> /create |
Choose from:
For more information, see:
|
|
cluster group <groupname> /delete |
For more information, see: Remove-ClusterGroup (http://go.microsoft.com/fwlink/?LinkId=143806) |
|
cluster group <groupname> /online |
For more information, see: Start-ClusterGroup (http://go.microsoft.com/fwlink/?LinkId=143821) |
|
cluster group <groupname> /offline |
For more information, see: Stop-ClusterGroup (http://go.microsoft.com/fwlink/?LinkId=143825) |
|
cluster group <groupname> /move |
For more information, see: Move-ClusterGroup (http://go.microsoft.com/fwlink/?LinkId=143799) |
|
cluster group "Available Storage" /move |
For more information, see: Move-ClusterGroup (http://go.microsoft.com/fwlink/?LinkId=143799) |
In the following table, each cluster resource command is mapped to the Windows PowerShell equivalent.
| Command | PowerShell command equivalent |
|---|---|
|
cluster resource |
For more information, see: Get-ClusterResource (http://go.microsoft.com/fwlink/?LinkId=143793) |
|
cluster resource /prop |
For more information, see: Get-ClusterResource (http://go.microsoft.com/fwlink/?LinkId=143793) |
|
cluster resource "<resourcename>" /prop <property>=<value> |
For more information, see: Get-ClusterResource (http://go.microsoft.com/fwlink/?LinkId=143793) |
|
cluster resource /priv |
For more information, see: Get-ClusterResource (http://go.microsoft.com/fwlink/?LinkId=143793) Get-ClusterParameter (http://go.microsoft.com/fwlink/?LinkId=143791) |
|
cluster resource <resourcename> /create /group:<groupname> /type:<restype> |
For more information, see: Add-ClusterResource (http://go.microsoft.com/fwlink/?LinkId=143773) |
|
cluster resource "<resourcename>" /delete |
For more information, see: Remove-ClusterResource (http://go.microsoft.com/fwlink/?LinkId=143808)s |
|
cluster resource "<resourcename>" /online |
For more information, see: Start-ClusterResource (http://go.microsoft.com/fwlink/?LinkId=143823) |
|
cluster resource "<resourcename>" /offline |
For more information, see: Stop-ClusterResource (http://go.microsoft.com/fwlink/?LinkId=143827) |
|
cluster resource "<diskresourcename>" /maint:on |
For more information, see: Suspend-ClusterResource (http://go.microsoft.com/fwlink/?LinkId=143829)s |
|
cluster resource "<diskresourcename>" /maint:off |
For more information, see: Resume-ClusterResource (http://go.microsoft.com/fwlink/?LinkId=143814) |
In the following table, each cluster network or cluster netinterface command is mapped to the Windows PowerShell equivalent.
| Command | PowerShell command equivalent |
|---|---|
|
cluster network |
For more information, see: Get-ClusterNetwork (http://go.microsoft.com/fwlink/?LinkId=143787) |
|
cluster network /prop |
For more information, see: Get-ClusterNetwork (http://go.microsoft.com/fwlink/?LinkId=143787) |
|
cluster netinterface |
For more information, see: Get-ClusterNetworkInterface (http://go.microsoft.com/fwlink/?LinkId=143788) |
|
cluster netinterface /prop |
For more information, see: Get-ClusterNetworkInterface (http://go.microsoft.com/fwlink/?LinkId=143788) |
In the following table, each cluster resourcetype command is mapped to the Windows PowerShell equivalent.
| Command | PowerShell command equivalent |
|---|---|
|
cluster resourcetype |
For more information, see: Get-ClusterResourceType (http://go.microsoft.com/fwlink/?LinkId=143796) |
|
cluster resourcetype /prop |
For more information, see: Get-ClusterResourceType (http://go.microsoft.com/fwlink/?LinkId=143796) |
|
cluster resourcetype /priv |
For more information, see: Get-ClusterResourceType (http://go.microsoft.com/fwlink/?LinkId=143796) Get-ClusterParameter (http://go.microsoft.com/fwlink/?LinkId=143791) |
-
Getting Started with Windows PowerShell on a Failover Cluster
-
Using Windows PowerShell Cmdlets on Failover Clusters in Windows Server 2008 R2
-
Windows PowerShell Getting Started Guide (http://go.microsoft.com/fwlink/?LinkID=113440)
