question

sns1 avatar image
0 Votes"
sns1 asked AllenXu-MSFT edited

error while connecting to online sharepoint site through powershell

I am trying to connect SharePoint online site through PowerShell, not sure why below error is coming up.
What is Oauthetication? Please clarify.
117706-image.png

office-sharepoint-online
capture.png (28.1 KiB)
image.png (40.9 KiB)
image.png (41.3 KiB)
image.png (41.5 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @sns1

We have edited your question because there is privacy information contained in it. Please be aware of it next time.

0 Votes 0 ·

1 Answer

YiLu-MSFT avatar image
0 Votes"
YiLu-MSFT answered AllenXu-MSFT edited

Hi @sns1

The cmdlet Connect-SPOService connects a SharePoint Online administrator or Global Administrator to the SharePoint Online Administration Center.

The value of parameter –Url should specify the URL of the SharePoint Online Administration Center site. For example:

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

If you are going to connect to a SharePoint Online site, you can use the PnP cmdlet Connect-PnPOnline. For example:

  Connect-PnPOnline -Url https://contoso.sharepoint.com/sites/test123

If an Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.