Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

The User Profile Synchronization Service was not properly configured and was stuck in "Stopping" state. I was able to delete the User Profile Service Application but the User Profile Service (instance) and User Profile Synchronization Service remained. How do I get rid of them all so I can start fresh with the User Profile Service configuration?

Edit: I've tried this along with many other posts I've found. I'm looking for a way to perhaps manually delete this or at least set the status to "Stopped."

share|improve this question

4 Answers 4

Ok, not sure if this has been tried since there's a bout 50 million things to try on Harbar's site (Good site though)

I always do the following if the actual Service is stuck in Stopping or Starting:

Firstly, run this:

Get-SPServiceInstance

This will show a list of service Instances. Find your broken Service (Status will be Provisioning or Unprovisioning)

Get the GUID of this Service

Next

$srvc = Get-SPServiceInstance "GUID"
$srvc.Unprovision()

WAIT...

WAIT SOME MORE....

HOPE....

WAIT...

It stopped!!!

share|improve this answer

I suggest you follow the instructions in Spence Harbar's "Stuck on Starting" article, and specifically the section on resetting the synchronization service instance.

share|improve this answer
    
I've actually tried that exact method already. Sorry I didn't mention it but I've tried a lot of things, most of which I don't remember. –  Josh M. Jul 14 '11 at 12:46

I was able to look in the SP_Config database and find the object which related to the unprovisioning of the User Profile Synchronization Service. After deleting that object I was able to:

$s = Get-SPServiceInstance <GUID of User Profile Synchronization Service>
$s.Delete()

And the service was deleted. Now I can start "fresh," in theory.

share|improve this answer
    
OUCH... You shouldn't have deleted it.... Now you'll see the Service Instance is gone... completely gone... I did that the other day and I think the only way to get it back was to run the Sharepoint Installer and do a repair... –  Fox Jul 14 '11 at 15:14
    
I haven't seen the consequences yet, I'll report back once I do. –  Josh M. Jul 14 '11 at 15:49

To resolve this particular issue, just run:

Install-SPService

share|improve this answer
    
Do you have any reference for your claim? –  Benny Skogberg MCSA Mar 14 '13 at 12:44
    
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. –  PirateEric Mar 14 '13 at 15:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.