Error while conecting to sharepoint online

sns 9,226 Reputation points

Below Error while connecting to SharePoint online. PFA
Please help.

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

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 42,346 Reputation points Microsoft Vendor


    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 "" -UseWebLogin  


    Connect-PnPOnline -Url "" -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.