Can't import SharePoint online Powershell module

This forum is used to document the operation and use of the office 365 for Automate plugin. Please keep comments to a minimum inside this forum. If you have a particular issue, post that issue in the main office365 forum.
Post Reply
User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Can't import SharePoint online Powershell module

Post by Cubert »

This is caused by Microsoft.SharePoint.Client.dll installed in the Global Assembly Cache from an older version of module.

To resolve the issue,
(1) Navigate to C:\Windows\Microsoft.NET\assembly\GAC_MSIL
(2) Remove the Microsoft.SharePoint.* assemblies
(3) Uninstall the module with Uninstall-Module -Name Microsoft.Online.SharePoint.PowerShell

After reinstalling the module from the PowerShell gallery, the module worked flawlessly.

Post Reply

Return to “Office365 For Automate Documentation Forum”