Troubleshooting (user profile synchronisation service) SharePoint 2010
Please Note: These steps should only be used if SharePoint user profile synchronisation service is stuck on starting or will not start or continues to fail.
Stop the SharePoint user profile synchronisation service instance that is stock on starting using powershell.
When the Administrator powershell window opens, type in the following cmdlet (get-spserviceinstance ) as seen below:
Copy the ID of the of the user profile sycronisation service that you want to stop , in the status would normally say provisioning .
Now type in the cmdlet ( stop-spserviceinstance ) see pictures below:
Type in Y and the instance will stop.
Please Note: You need to do an IISRESET after performing these steps before going on to the other steps.
NEXT: go to Central Admin and click on monitoring, then Check Job Status
DELETE any user profile provisioning jobs
Go into the SharePoint central administration site, and then click on service on this server
As you can see below the User Profile Synchronisation service is in a stopped state
You will need to take the following steps before attempting to start the service:
Go into registry editor as seen below
CurrentControlSet , then service , then FIMservice. Please check that the database specified in the view below is the correct database and connection
NEXT add the farm account into all the FIM service Groups
3rd Step:
Go into the system folder for the FIM system
Delete everything in the MA folder!
NEXT: delete all the forefront identity manager PERSOLAL certificates and also all the Root TRUSTED certificates
Delete all forefront identity manager personal certificates as seen below:
Delete all forefront identity manager Trusted Root Certificates
Go into windows components services and enable Local DTC
Local DTC should be set as seen below
Now go back to central Admin Site, Click on Manage Services on this Server then Pick from the drop down menu the user profile application that you want to you and then click start to start the user profile sync service.
Please note: that you have to type in the passwords – please do not copy and past here.