Author | Chrissy LeMaire (@cl), netnerds.net |
Availability | Windows, Linux, macOS |
Want to see the source code for this command? Check out Get-DbaWsfcCluster on GitHub.
Want to see the Bill Of Health for this command? Check out Get-DbaWsfcCluster.
Retrieves Windows Server Failover Cluster configuration and status information for SQL Server high availability environments.
Retrieves detailed configuration and operational status information from Windows Server Failover Clusters that host SQL Server instances. This function connects to cluster nodes or the cluster name itself to gather essential cluster properties including quorum configuration, shared volume settings, and current operational state.
DBAs use this when troubleshooting cluster issues, validating cluster health before SQL Server installations, or documenting high availability configurations. The function returns key cluster metadata needed for capacity planning and disaster recovery preparation.
All Windows Server Failover Clustering (Wsfc) commands require local admin on each member node.
Get-DbaWsfcCluster
[[-ComputerName] <DbaInstanceParameter[]>]
[[-Credential] <PSCredential>]
[-EnableException]
[<CommonParameters>]
PS C:\> Get-DbaWsfcCluster -ComputerName cluster01
Gets failover cluster information about cluster01
PS C:\> Get-DbaWsfcCluster -ComputerName cluster01 | Select-Object *
Shows all cluster values, including the ones not shown in the default view
Specifies the target Windows Server Failover Cluster to query, either by cluster name or individual node name.
Use the cluster name when connecting to an active cluster, or specify a node name when the cluster service may be down.
Defaults to the local computer if not specified.
Alias | |
Required | False |
Pipeline | true (ByValue) |
Default Value | $env:COMPUTERNAME |
Allows you to login to the cluster using alternative credentials.
Alias | |
Required | False |
Pipeline | false |
Default Value |
By default, when something goes wrong we try to catch it, interpret it and give you a friendly warning message.
This avoids overwhelming you with "sea of red" exceptions, but is inconvenient because it basically disables advanced scripting.
Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch.
Alias | |
Required | False |
Pipeline | false |
Default Value | False |