Hi! Recently I came across this issue provisioning the User Profile Service Application.
I followed the procedure as always, first start services, créate User Profile Service App and finally Starting User Profile Sync Service. But with this last step, the User Profile Sync stuck on “Starting” and hangs several hours. So I will explain the procedure I followed to solve this problem.
If the User Profile Service Synchronisation Service is stuck on ‘Starting’:
- Run SharePoint Management Shell as a farm administrator.
- Type: stop-spserviceinstance | where { $_.typename -eq “user profile synchronization service” }
- The User Profile Synchronization service status should now be ‘Stopped’ or ‘Disabled’.
- Ensure you have the service “User Profile Service” running in the “Services on Server” on the intended server running UPS.
- Ensure BEFORE you start the “User Profile Synchronization Service”, go into the servers Services and set “Forefront Identity Manager Service” and “Forefront Identity Manager Synchronization Service” startup type to “Disabled” and Log On as “Local System Account” (these will get setup to the proper values later on – just trust me).
Check the Certificates store on the server that runs the User Profile Synchronization Service and delete all the ForefrontIdentityManager certificates.
- Start -> Run -> mmc
- File -> Add / Remove Snap-in
- Select Certificates -> Computer Account -> Finish -> Local Computer -> Finish -> OK
- Expand Certificates -> Personal -> Certificates
- Delete all ForefrontIdentityManager certificates (if you have tried to provision the UPS unsuccessfully several times, you will see more than one certificate).
- Expand Certificates -> Trusted Root Certification Authorities -> Certificates
- Delete all ForefrontIdentityManager certificates (if you have tried to provision the UPS unsuccessfully several times, you will see more than one certificate).
Check Central Administration for the ProfileSynchronizationSetupJob and delete any running jobs.
- Go to Central Administration -> Monitoring
- Delete the job.
Add the service account to Local Admin group on the server
Go to:
- Start type in “compmgmt.msc”
- Go to Local Users and Groups
- Go to Groups
- Double Click Administrators
Add the service account to the group
Add the service account to all the FIM groups
Do the exact same to all of the FIM groups as you did above
And BANG! adding my service account to this groups I was able to start the User Profile Sync Service and create a new connection.
Hope it helps someone!