I am trying to connect to my site using SharePoint Online Management Shell. But it isn't connecting. The following error is being displayed.

enter image description here

What could be the possible reason?


In your cmdlet, There is a space between - and URL parameter! so you got this error

A positional parameter cannot be found that accepts arguments -

The cmdlet

Connect-SPOService -Url https://contoso-admin.sharepoint.com -credential admin@contoso.com

For more details check Connect-SPOService

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.