Unable to Connect to MSOlService

Eddie Does IT 20 Reputation points
2024-09-20T12:43:09.4433333+00:00

I am trying to troubleshoot duplicate user and group objects from older AD instance that was connected to by Entra ID tenant for identities to sync from on prem to Entra. I understand that I need to disable DirSync but every time I try to connect to msolservice, I get the error below.

I have tried everything to troubleshoot. I tried disabling the azure connector, limiting scope to an OU that had no users or groups, then uninstalled MSOL module, removed files from the powershell module directory, same error.

I even tried moving the connecter to another server which only caused more duplicate objects. The only doc I found is this link but I do not see that service that it is referring to anywhere.

Anyone know how I can resolve this connect issue?

https://learn.microsoft.com/en-us/microsoft-365/troubleshoot/active-directory/connect-error-0x800488ee

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
    
    
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,524 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,792 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andy David - MVP 148.1K Reputation points MVP
    2024-09-20T16:53:53.91+00:00

    If you need to disable sync, you can use this doc using the mggraph module instead:

    https://learn.microsoft.com/en-us/microsoft-365/enterprise/turn-off-directory-synchronization?view=o365-worldwide

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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