Posted On September 30, 2019

PowerShell: Reset Failover Clustering Quorum

kimconnect 0 comments
blog.KimConnect.com >> Codes >> PowerShell: Reset Failover Clustering Quorum
# Adding Prerequisite Microsoft Cluster
Function installFailoverClustersModule{
if (!(get-module -Name "FailoverClusters") ){
#Install-WindowsFeature Failover-Clustering | out-null;
Install-WindowsFeature RSAT-Clustering-MGMT | out-null;
Install-WindowsFeature RSAT-Clustering-PowerShell | out-null;
Import-Module FailoverClusters | out-null;
}
}
installFailoverClustersModule;

# Fix quorum, Force a cluster to start by seizing the forum
$nodeName="SQL01"
Import-Module FailoverClusters
Stop-ClusterNode –Name $nodeName
Start-ClusterNode –Name $nodeName -FixQuorum
(Get-ClusterNode $nodeName).NodeWeight = 1 #set its weigh to 1

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Query Print Spooler of SERVER1

function getStatus($server, $service){    Get-WmiObject Win32_Service -Filter "Name Like 'spooler'" -computer SERVER1 -credential $cred | select…

Basic HTML and HTML5: Link to Internal Sections of a Page with Anchor Elements

<h2>Demo</h2><main><a href="#footer">Jump to Bottom</a><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."><p>Kitty ipsum dolor…

PowerShell: Performing System Disk Cleanup

Version 2: # cleanupWindows.ps1 # Version 0.0.2 ################################## Excuting Program as an Administrator #################################### #…