BEMCLI command fails with exception that drive does not exist

  • Article ID:100010304
  • Modified Date:
  • Product(s):

Problem

Running BEMCLI related powershell commands fail with error listed below.

Error Message

Import-Module : Cannot find drive. A drive with the name, '<DRIVER_LETTER>', does not exist.

Cause

PowerShell environmental variable PSModulePath has an incorrect path.

Solution

Change PSModulePath environmental path to point to the correct location:

Determine current PSModulePath

  1. Within the PowerShell shell type: $env:PSModulePath and press Enter.

NOTE: The default value of $env:PSModulePath is:

$home\Documents\WindowsPowerShell\Modules; $pshome\Modules

(e.g. C:\Users\Administrator\Documents\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules\)

  1. Change the PSModulePath (for most customers the default path above is sufficient) by doing the following.
    1. Right click on My Computer and choose Properties.
    2. Click on Advance System Settings.
    3. Click on Environment Variables...
    4. In the System variables section scroll up or down to locate the variable PSModulePath.
    5. Click Edit.
    6. Enter the correct path (using Default this could be %SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\  -OR- $pshome\Modules).
    7. Click OK till you are out of all screens.
  2. Attempt the BEMCLI command.

If the issue persist verify that there is no a PowerShell profile setting that may be interfering. To learn more about PowerShell profiles visit: https://technet.microsoft.com/library/hh847857.aspx for further information.


Was this content helpful?

Get Support