There has been a number of occasions when I have seen this error occurring on servers running DirSync, the error is this one:
Event ID: 6313Task Category: Server
Level: Error
Keywords: Classic
User: N/A
Computer: FIMSync
Description:
The server encountered an unexpected error creating performance counters for management agent “Active Directory MA”.
Performance counters will not be available for this management agent.
The solution is a relatively simply one:
- Delete this registry key first:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesFIMSynchronizationServicePerformance - Next from an elevated command prompt run:
unlodctr.exe FIMSynchronizationService - Then run from the same elevated command prompt:
lodctr.exe “C:Program FilesWindows Azure Active Directory SyncSYNCBUSSynchronization ServiceBinmmsperf.ini”
After these steps restart the service FIMSynchronizationService and you should be all sorted. This has worked for me numerous times