error while connecting to online sharepoint site through powershell

sns 9,236 Reputation points
2021-07-23T11:52:20.367+00:00

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

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,685 questions
{count} votes

Accepted answer
  1. Yi Lu_MSFT 17,481 Reputation points
    2021-07-26T08:24:03.43+00:00

    Hi @sns

    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.