Connect-msolservice

Sunil Saini 0 Reputation points
2024-06-14T12:21:55.12+00:00

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
    2024-06-18T00:41:02.2666667+00:00

    You shouldn't be using MSOnline module anymore.

    Use MSGraph instead - follow https://learn.microsoft.com/en-us/microsoft-365/enterprise/connect-to-all-microsoft-365-services-in-a-single-windows-powershell-window?view=o365-worldwide


    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.

    hth

    Marcin