7

I want to write PowerShell for SharePoint online using ISE, but I can't seem to be able to make it use the intellisense for the object. When I run the

Import-Module Microsoft.Online.SharePoint.Powershell -Verbose

it's giving me this error:

The specified module 'Microsoft.Online.SharePoint.Powershell' was not loaded because no valid module file was found in any module directory

How can I fix this problem?

5

You need to open ISE so it is running under an administrator account as well in order for it to import the module. The error you're seeing is a permission issue, and it happens even on the SharePoint online management shell when you don't run it as an administrator. You need to run ISE as an administrator too.

  • oops, you were right it's a security thing. thanks for your direction. – Tam neal Dec 18 '15 at 13:09
1

Do you really have SharePoint Online Management Shell installed? That is what you need.

Download link: https://www.microsoft.com/en-us/download/details.aspx?id=35588

  • Hi Robert, yes I have it, I open it using admin account, and connect with: connect-sposervice. It works 100%, but I want to use ISE (Integrated Scripting Environment), in order to get intellisense. using Import-Module isn't working. Any extra steps I need to do? – Tam neal Dec 18 '15 at 11:12
  • I think it might be so, check here: pcfromdc.blogspot.se/2013/08/… if it helps you out – Robert Lindgren Dec 18 '15 at 12:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.