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: 6313
Task Category: Server
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:
- Next from an elevated command prompt run:
- 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