unable to connect to sharepoint online

Glenn Maxwell 10,146 Reputation points
2021-05-31T10:26:30.513+00:00

Hi i am getting below error connecting to SharePoint online PowerShell module. i was able to connect till few days back but now i am getting this error. Please guide me

PS C:\Windows\system32> Connect-SPOService -Url https://contoso-admin.sharepoint.com
Connect-SPOService : Could not connect to SharePoint Online.
At line:1 char:1

  • Connect-SPOService -Url https://contoso-admin.sharepoint.com
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : NotSpecified: (:) [Connect-SPOService], InvalidO
    perationException
  • FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.Onlin
    e.SharePoint.PowerShell.ConnectSPOService
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,616 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,173 questions
{count} votes

Accepted answer
  1. MichaelHan-MSFT 18,016 Reputation points
    2021-06-01T01:55:55.583+00:00

    Hi @Glenn Maxwell

    Just for clarification, are you replacing the https://contoso-admin.sharepoint.com with your tenant URL?

    Please make sure you use the correct url. The URL format would be like this: https://TenantName-admin.sharepoint.com


    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 additional answers

Sort by: Most helpful