Azure AD Connect Invalid class

Tomass Pētersons 336 Reputation points
2024-07-05T13:44:52.05+00:00

Hi,

A couple of days ago the VM was hard rebooted a few times due to technical issues in the data center. There seemed to be no issues with the VM itself, but yesterday I got a message that Azure AD Connect (Entra Connect) is not working. Looking at the services, I see that the Sync and Health Agent services cannot start. Trying to open AD Connect itself throws a weird "Invalid class" error.
6
7

Analyzing the audit logs, I came across several strange errors. It seems to me that something is wrong with the .NET Framework, but I can't really understand the root of the problem.
1
2
3
4
5

I tried to repair Azure AD Connect. I tried to fix the situation with SFC and DISM commands, but nothing.
AD Connect version 2.3.8.0 runs on Windows Server 2022 with all updates. I hope for advice and help.

Thanks!

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

2 answers

Sort by: Most helpful
  1. Tomass Pētersons 336 Reputation points
    2024-07-05T16:49:49.3866667+00:00

    This can be seen in the error.log file under C:\Users\ADSyncMSAxxxx$\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\ADSync2019. Does this mean I just have to be very patient or is there still some involvement required?
    8

    0 comments No comments

  2. Akhilesh 6,985 Reputation points Microsoft Vendor
    2024-07-08T13:54:17.63+00:00

    Hi @Tomass Pētersons

    Thank you for reaching us!

    The "Invalid class" error you are seeing when trying to open AD Connect is typically caused by a corrupted WMI repository
    sometimes simple restart might fix your issue, if still the issue is not fix, try Starting and stopping WMI service if the issue persists same rebuilding the WMI repository on the server where Entra Connect is installed.

    Hope this helps. please let me know if you any further queries.

    Thanks,

    Akhilesh.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments