Functions icon indicating copy to clipboard operation
Functions copied to clipboard

Issue with FailoverCluster(s) error-handling

Open cjnconor opened this issue 5 years ago • 0 comments

Hello! First off, thank you for this and all other incredibly useful functions you've written.

I've found an issue with this spot of error handling at the end of this function (starting at line 2016):

Function Get-TheModule { Get-Module FailoverCluster } if(-Not(Get-TheModule)){ Write-Warning "Sorry you dont have the failover cluster module installed so wont be abel to get the cluster log" Write-Warning "You will need to run Install-WindowsFeature -Name Failover-Clustering -IncludeManagementTools"

Correct me if I'm wrong, but "FailoverCluster" should be replaced with "FailoverClusters." I ran these commands to confirm:

C:> Get-Command -Module FailoverClusters | Measure | Select Count

Count : 120

Please let me know if I'm mistaken with anything here.

cjnconor avatar Mar 06 '19 22:03 cjnconor