Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, May 5, 2014 8:14 PM
When I open the SharePoint Online Management Shell it immediately displays the following error before I can type anything.
Import-Module : The specified module 'Microsoft.Online.SharePoint.PowerShell' was not loaded because no valid module file was found in any module directory
I am attempting to connect to an O365 Environment.
I am on a Windows 7 Machine and believe that I have .NET 4, and the Windows Management Framework 3.0 installed. I am also a Office365 Global Administrator.
Any idea on what might be causing this issue?
--UPDATE--
I reinstalled and removed both the x86 and x64 management shells, and it eventually went away. I might have had a conflict with eventually installing both versions.
All replies (8)
Monday, May 5, 2014 9:16 PM âś…Answered
Thanks for the suggestion Alex
I reinstalled and removed both the x86 and x64 management shells, and it eventually went away. I might have had a conflict with eventually installing both versions.
Monday, May 5, 2014 8:29 PM
Have you downloaded the module? If not then it won't work.
Monday, May 5, 2014 9:48 PM
Generally i wouldn't bother with the x86 version. SharePoint is designed to be x64, and for the on premise one you can't get it to work in x86 mode. I expect SharePoint online behaves similarly.
Sunday, July 6, 2014 10:11 PM | 20 votes
Did you try running it as an administrator? this should resolve the issue
Dennis Alzoubi
Wednesday, December 9, 2015 6:16 PM
This was the solution for me.... Thanks Dennis!
Friday, January 15, 2016 7:14 PM
Running as admin worked for me.
Monday, July 25, 2016 5:40 AM
hi all,
i was getting the same error as schuess.
digging in, found that this error is thrown when you have script execution disabled on the system.
just run the command to unrestrict it and the error goes away.
check https://technet.microsoft.com/en-us/library/ee176961.aspx for code to unrestrict script execution.
regards,
shek
Thursday, September 22, 2016 8:34 PM | 2 votes
Great - why should I have to run as admin? I want to administer via my own user account!
Any ideas?
EDIT:
The morons who wrote the installer modify the PSModulePath for the user used to install the package, no one else.
Manually import the module and it works fine. I'll test further but this seems to solve my problem.
Dear M$. Fire the guy that wrote that installer.
Dear Thread: You are now answered.