Daniel
Daniel

Reputation: 635

import-module failovercluster failing to load in powershell

I am using windows 2019 server, import-module failovercluster is giving an error

import-module : the specified module 'failovercluster' was not loaded because no valid module file was found in any module directory

CategoryInfo: ResourceUnavailable: (failovercluster:string) [Import-Module], fileNotfoundException

FullyQualifiedErrorid: Modules_ModuleNotFound, Microsoft,Powershell,Commands.ImportModuleCommand

I have tried both powershell shells (x86) and non x86 shell. Is there a way to import the failovercluster module? I have also tried opening powershell (x64 ) from following directory

c:\windows\SysWow64\WindowsPowershell\v1.0

Import-module failovercluster gave similar module not found error.

How can we resolve this?

Upvotes: 1

Views: 1532

Answers (1)

Daniel
Daniel

Reputation: 635

I had to use

Install-WindowsFeature -name FailOver-Clustering -IncludeManagementTools 

for Windows 2019 to get the correct modules.

Upvotes: 0

Related Questions