Sunil Saini 0 Reputation points

connect-msolservice command giving the below error

connect-msolservice : One or more errors occurred.

At line:1 char:1

  • connect-msolservice
        + CategoryInfo          : OperationStopped: (:) [Connect-MsolService], AggregateException
        + FullyQualifiedErrorId : System.AggregateException,Microsoft.Online.Administration.Automation.ConnectMsolService

User's image

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,495 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marcin Policht 17,770 Reputation points MVP

    You shouldn't be using MSOnline module anymore.

    Use MSGraph instead - follow

    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.