Use Powershell to remove a vote on a cluster

---Remove vote with powershell
---http://msdn.microsoft.com/en-us/library/hh270281.aspx
Import-Module FailoverClusters

$node = “AlwaysOnSrv1”
(Get-ClusterNode $node).NodeWeight = 0

$cluster = (Get-ClusterNode $node).Cluster
$nodes = Get-ClusterNode -Cluster $cluster

$nodes | Format-Table -property NodeName, State, NodeWeight

Discover more from SQLYARD

Subscribe to get the latest posts sent to your email.

Leave a Reply

Discover more from SQLYARD

Subscribe now to keep reading and get access to the full archive.

Continue reading