dataplat / dbachecks

✔ SQL Server Environmental Validation
https://dbachecks.readthedocs.io/en/latest/
MIT License
463 stars 143 forks source link

invoke-dbccheck -check HADR complains about failover clusters module when run from local workstation #452

Closed TheRockStarDBA closed 6 years ago

TheRockStarDBA commented 6 years ago

Issue

This is a unexpected behavior

Bug Report

General Troubleshooting steps

Invoke-DbcCheck -Check HADR -ComputerName

Executing script C:\Program Files\WindowsPowerShell\Modules\dbachecks\1.1.121\checks\HADR.Tests.ps1 WARNING: [09:55:48][HADR.Tests.ps1] FailoverClusters module could not load - Please install the Failover Cluster module using Windows Features | The specified module 'FailoverClusters' was not loaded because no valid module file was found in any module directory.

Does (Find-Module dbachecks).Version match (Get-Module dbachecks).Version.ToString()

TRUE

wsmelton commented 6 years ago

Why can you not install the failover cluster module on the central server? It is simply client tools just like the server administrator console or AD tools.

TheRockStarDBA commented 6 years ago

I can install but we have different domains and for some domains, I need the ability to run the tests from my local windows 7 PC. Other domains, I can run the test from central server.

SQLDBAWithABeard commented 6 years ago

Unfortunately this is going to be a limitation of dbachecks. Running remote failover cluster commands brings unexpected behaviour.

Unless anyone has any ideas I am sorry we will have to close this without fixing