Enterprise Vault (EV) Management shell | Import-Module fails with the error "The specified module 'EnterpriseVault' was not loaded"

book

Article ID: 100055583

calendar_today

Updated On:

Description

Error Message

After an EV upgrade or in-place upgrade of the operating system of the EV servers, the EV management shell is unable to load EV module in it and fails with the following error:

Import-Module : The specified module 'EnterpriseVault' was not loaded because no valid module file was found in any module directory.
At line:1 char:1
+ Import-Module EnterpriseVault
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (EnterpriseVault:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

Cause

The EV Management shell module is missing from the PSModulePath under the system environment variable or the installer modified the PSModulePath system environment variable.

Resolution

Refer to steps below:

  1. Open the Control Panel, navigate to System and Security, then to System and then to Advanced System Settings.
  2. Click on Environment variables under System Properties.
  3. Scroll down to PSModulePath under System Variables.
  4. Ensure EV management shell module path is added.  The default path should be \Modules\.
  5. If the path is missing, click on New to add the path and click OK to save it.
  6. If the path is not correct, edit the path and specify the correct path.

Note: The EV install location can be different across multiple EV servers. Validate that path before making the changes.

Issue/Introduction

Enterprise Vault (EV) Management shell | Import-Module fails with the error The specified module 'EnterpriseVault' was not loaded.