Windows2012-Cluster Commands 移到PowerShell

原本在Windows 2008的commands可以使用cluster的指令,但在Windows2012卻無法,

發現原來移動到PowersShell

原本在Windows 2008的commands可以使用cluster的指令,但在Windows2012卻無法,

發現原來移動到PowersShell

參考下方微軟的文章(包含指令):

https://technet.microsoft.com/zh-tw/library/ee619744%28v=ws.10%29.aspx?f=255&MSPPError=-2147217396

Cluster commands and equivalent Windows PowerShell cmdlets

Back to top

In the following table, each cluster command is mapped to the Windows PowerShell equivalent.

 

Command PowerShell command equivalent

cluster /prop

Get-Cluster | fl *

For more information, see: Get-Cluster (http://go.microsoft.com/fwlink/?LinkId=143782)

cluster /create

New-Cluster

For more information, see: New-Cluster (http://go.microsoft.com/fwlink/?LinkId=143803)

cluster /destroy

Remove-Cluster

For more information, see: Remove-Cluster (http://go.microsoft.com/fwlink/?LinkId=143804)

cluster /add

Add-ClusterNode

For more information, see: Add-ClusterNode (http://go.microsoft.com/fwlink/?LinkId=143771)

cluster /shutdown

Stop-Cluster

For more information, see: Stop-Cluster (http://go.microsoft.com/fwlink/?LinkId=143824)

cluster /rename

(Get-Cluster).Name = "newname"

For more information, see: Get-Cluster (http://go.microsoft.com/fwlink/?LinkId=143782)

cluster /quorum

Get-ClusterQuorum

Set-ClusterQuorum

For more information, see: