Saturday, 22 May 2021

How to start User Profile Service stuck on Starting or Stopping stage

Issue:

Recently, we have requirement to change the farm admin account due to some issue with user. We have changed the user but it broke the User Profile Service. The issue we face is that when we start it, it stuck on Starting. If we try to stop then it stuck on stopping. 

Solution:

So, finally I can across PowerShell script that is working for me that starts & stops user profile and user profile synchronisation service. 

  • To stop the service, run using powershell command for user profile service,

 stsadm -o provisionservice -action stop -servicetype “Microsoft.Office.Server.Administration.UserProfileService, Microsoft.Office.Server.UserProfiles, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” -servicename  

  •   To stop the service, run using powershell command for user profile synchronization service,

 stsadm -o provisionservice -action stop -servicetype “Microsoft.Office.Server.Administration.UserProfileService, Microsoft.Office.Server.UserProfiles, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” -servicename FIMSynchronizationService  

Now to start the service, you just need to change the action parameter to start in above powershell command.

  • To start the service, run using powershell command for user profile service,

 stsadm -o provisionservice -action start -servicetype “Microsoft.Office.Server.Administration.UserProfileService, Microsoft.Office.Server.UserProfiles, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” -servicename  

  • To start the service, run using powershell command for user profile synchronization service,

 stsadm -o provisionservice -action start -servicetype “Microsoft.Office.Server.Administration.UserProfileService, Microsoft.Office.Server.UserProfiles, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” -servicename FIMSynchronizationService  

Reference:

  • http://sharepointhyfy.blogspot.com/2016/04/user-profile-service-stuck-in.html#gsc.tab=0
  • https://social.technet.microsoft.com/wiki/contents/articles/26067.sharepoint-2013-user-profile-stuck-stopping.aspx

SharePoint Classic Site Retirement: Your Plan to Avoid Last-Minute Chaos

Classic SharePoint has been on borrowed time for years. Microsoft has now put dates on the remaining pieces. Microsoft will disable creation...