Azure A positional parameter cannot be found that accepts argument

Member_2_7966113
Member_2_7966113 used Ask the Experts™
on
Hello Experts,

I am trying to import the module AzureRM.Profile.psm1. However, I'm getting the error:

Import-Module : A positional parameter cannot be found that accepts argument

The full command is as follows:

import-module -Name C:\Program Files\WindowsPowerShell\Modules\AzureRM.Profile\4.2.0\AzureRM.Profile.psm1 -Global

Open in new window


The module is in the folder as you can see from the image below:

Example Project
So I don't know why I keep on getting the error.

Can someone please assist in resolving this issue

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2014
Commented:
Since your path has a space in it, try using quotes around the full path.

Author

Commented:
Perfect. That worked fine.. Cheers mate

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial