User profile synchronization service stuck on starting SharePoint 2013/2016

This SharePoint tutorial, we will discuss how to fix error user profile synchronization service stuck on starting sharepoint 2013 or user profile synchronization service is not starting in sharepoint 2013/2016.

As part of the User Profile configuration, we need to start “User Profile Synchronization Service” under services on the server. But when I try to start this service the status is kept showing as “Starting” as below.

user profile synchronization service is not starting in sharepoint 2013

user profile synchronization service stuck on starting SharePoint 2013

To fix this issue follow the below steps.

Log on to application server as FARM administrator

Open SharePoint PowerShell command window

Get all the services running in server with the below stsadm command

stsadm -o enumservices > C:\services.txt

The output will be as follows:

user profile synchronization service does not start sharepoint 2013

Once you get the output to execute the below script to stop the service provisioning.

stsadm -o provisionservice -action stop -servicetype "Microsoft.Office.Server.Administration.ProfileSynchronizationService, Microsoft.Office.Server.UserProfiles, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" -servicename FIMSynchronizationService

The output will be as follows:

user profile synchronization service stuck on starting

As advised in the output these changes will be effected after IISRESET and server restart.

After you restart the server stop the below 2 services and disable them

user profile synchronization service stuck on starting sharepoint 2013

Now open the folder “S:\Windows\System32\WindowsPowerShell\v1.0” and delete the auto-generated PowerShell files “Microsoft.PowerShell_profile.ps1” and “Microsoft.PowerShellISE_profile.ps1”

Now restart the “User Profile Synchronization Service” in Service on a server in central admin.

This will start both the services listed in step 6 and starts the “User Profile Synchronization Service”

The output is as follows:

user profile synchronization service is not starting in sharepoint 2013

start user profile synchronization service PowerShell

If you are getting user profile synchronization service stuck on starting 2013 error, then we can also start user profile synchronization service using PowerShell in SharePoint 2013/2016.

You can use the below PowerShell script to solve the error user profile synchronization service stuck on starting 2013 error.

#Stop hangged User Profile Synchronization service
$userprof=Get-SPServiceInstance |?{$_.TypeName -match "User Profile Synchronization*"}
Stop-SPServiceInstance $userprof

#UnProvisioned and then Provisioned Sync DB
$syncdb=Get-SPDatabase |?{$_.Name -match "Sync DB*"}
$syncdb.Unprovision()
$syncdb.Status='Offline'
$upa=Get-SPServiceApplication -Id |?{$_.Name -match "User Profile*"}
$upa.ResetSynchronizationMachine()
$upa.ResetSynchronizationDatabase()
$syncdb.Provision()

You may like following SharePoint tutorials:

This SharePoint tutorial, we learned how to solve user profile synchronization service stuck on starting SharePoint 2013 or SharePoint 2016.

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)

envelope
envelope

Krishna Vandanapu

I am Krishna.Vandanapu a SharePoint architect working in IT from last 13+ years, I worked in SharePoint 2007, 2010, 2013, 2016 and Office 365. I have extensive hands on experience in customizing SharePoint sites from end to end. Expertise in SharePoint migration tools like Sharegate, Doc Ave and Metalogix. Migrated SharePoint sites from SharePoint 2007 to 2010 and 2010 to 2013 several times seamlessly. Implementing CSOM with Microsoft best practices. Spent quality time in configuring SharePoint application services like User Profile, Search, Managed Meta data services etc. Now exploring SharePoint Framework and SharePoint 2019

>