Forum Discussion
Andy_Bond
Mar 03, 2019Copper Contributor
Can't import SharePoint online Powershell module
when I use Import-Module Microsoft.Online.SharePoint.PowerShell it says PS C:\Windows\system32> Import-Module Microsoft.Online.SharePoint.PowerShell Import-Module : Could not load type 'Microsoft...
syed_nasir_abbas
Jul 15, 2022Copper Contributor
To work with SharePoint online, you need the SharePoint Online Management Shell PowerShell module. Once installed (on your Windows 10 machine), SharePoint Online PowerShell will be loaded automatically in the PowerShell console as well as ISE without importing the module manually.
You need to connect SPO like this:
Connect-SPOService -Url https://contoso-admin.sharepoint.com -Credential email address removed for privacy reasons
After -Credential type the SharePoint Online administrator email.