Forum Discussion
Can't import SharePoint online Powershell module
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.
syed_nasir_abbas I think you missed the point of the op's post.
The issue isn't the cmdlet or how to format it. The issue is that module often generates an error.
Also, as MS is removing basic authentication, your suggestion will not work after October. The preferred method is now. This will prompt for the web login and supports MFA
```