Skip to content

Stop User Profile Synchronization service Or User Profile Synchronization service stuck on Starting or Stopping

November 12, 2018

Follow below script when User Profile Synchronization service stuck on Starting or Stopping:

1. Log on to the Server where User Profile Synchronization Service was stuck in stopping state.
2. Make sure the Forefront Identity Manager and Forefront Identity Manager Synchronization Service are using the farm account as the service account
3. Launch SharePoint 2013 Management Shell
4. Get the GUID for User Profile Synchronization Service
Get-SPServiceInstance | Select-Object TypeName, ID
5. Check the status of User Profile Synchronization Service
Get-SPServiceInstance -Identity GUIDOfUserProfileSynchronization
6. To stop this , type the GUID of User Profile Synchronization Serviec
Stop-SPServiceInstance -Identity GUIDOfUserProfileSynchronization
IISRESET on the front end servers.
OR

Add-PSSnapin Microsoft.SharePoint.Powershell
$TypeName = “User Profile Synchronization Service”
$ServerName = “SERVERNAME” #Replace with your server name where the service is stuck on Starting
$Serviceinstance = Get-SPServiceInstance | where-object {$_.TypeName -eq $TypeName -and $_.Server.Address -eq $ServerName}
$Serviceinstance.Unprovision()
Read-Host -Prompt “Press Enter to exit”

Or

Get-SPServiceInstance | Where-Object {$_.TypeName -eq ‘User Profile Synchronization Service’}                                                                                                                                                    Stop-SPServiceInstance GUID

 

 

Advertisement
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: