BEMCLI command fails with exception that drive does not exist

Article:TECH209631  |  Created: 2013-08-14  |  Updated: 2014-01-02  |  Article URL http://www.symantec.com/docs/TECH209631
Article Type
Technical Solution


Subject

Issue



Running BEMCLI related powershell commands fail with error listed below.


Error



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: http://technet.microsoft.com/library/hh847857.aspx for further information.




Article URL http://www.symantec.com/docs/TECH209631


Terms of use for this information are found in Legal Notices