Error while conecting to sharepoint online

sns 9,226 Reputation points
2022-02-13T14:00:46.417+00:00

Below Error while connecting to SharePoint online. PFA
Please help.
173816-errorr.png

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,680 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 41,866 Reputation points Microsoft Vendor
    2022-02-14T07:03:14.987+00:00

    @sns

    Whether you use SharePoint Online Management Shell to run the PowerShell?

    Whether you have a proxy?

    Please check the firewall is off and the network works well.

    If you have an account secured with MFA, when using PnP PowerShell you have to use the weblogin option which shows a popup to support MFA.

    Please use the below PnP powershell command:

    Connect-PnPOnline -Url "https://contoso.sharepoint.com" -UseWebLogin  
    

    OR

    Connect-PnPOnline -Url "https://contoso.sharepoint.com" -Interactive  
    

    Solution: Set up PowerShell proxy


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.