Share via

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 Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

1 answer

Sort by: Most helpful
  1. Marcin Policht 89,820 Reputation points MVP Volunteer Moderator
    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

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.