Saturday, November 26, 2016

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

Problem:
When trying to add PowerShell module for SharePoint online, using "Import-Module Microsoft.Online.SharePoint.PowerShell", it resulted in below error in both PowerShell console and in PowerShell ISE.
"Import-Module : The specified module 'Microsoft.Online.SharePoint.Powershell' was not loaded because no valid module file was found in any module directory."

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

Solution: 
  • Make sure you have SharePoint Online Management Shell installed on the machine you are getting the error. You can download and install SharePoint Online Management Shell from: https://www.microsoft.com/en-us/download/details.aspx?id=35588
    download and install sharepoint online managment shell
    You can check installed modules by: Get-Module -listavailable
  • If you are getting this error in SharePoint Online Management Shell, Make sure you removed x86 version of SharePoint online management shell from your computer, and Try download and Re-Install 64bit version!
  • Try running: Set-ExecutionPolicy Unrestrict once
  • Run PowerShell or PowerShell ISE as a administrator



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Check out these SharePoint products:

No comments :

Post a Comment

Please Login and comment to get your questions answered!


You might also like:

Related Posts Plugin for WordPress, Blogger...