Warning: preg_match(): Compilation failed: unrecognized character after (?< at offset 10 in /web1/user50603/website/wp-includes/class-wp-block-parser.php on line 418
When installing UPS. Never log in as the Farm account.. Just ensure the farm account is the local admin on the SharePoint server.
If the ups sync service is stuck on starting, run the following Powershell command (PoSh)
Get-spserviceinstance | select TypeName, ID
This will return the ID of the service that is stuck,
Then run the following PoSh command once you have the ID
Stop-SPServiceInstance -id “id of service” .
There are occasions when the service still won’t stop even after running the Stop-SPServiceInstance PoSh command (This can occur when you start the UPS whilst logged in as the farm account).
One way of stopping the service (if the Stop-SPServiceInstance doesn’t stop it) is to use the following stsadm commands. (You can also run the commands below in Powershell – no need to load any type of SnapIn.) – but for my example, I used STSADM.
stsadm -o enumservices > c:\services.txt – This produces a .txt file which gives a list of services and shows the name of the service you need (as below)
Then run stsadm -o provisionservice -action stop -servicetype “Microsoft.Office.Server.Administration.ProfileSynchronizationService, Microsoft.Office.Server.UserProfiles, Version=184.108.40.206, Culture=neutral, PublicKeyToken=71e9bce111e9429c” -servicename FIMSynchronizationService
The service type (in italics) is the from the service.txt (with the red border) 🙂