Skip to main content

SharePoint Ninja

Go Search
SharePoint Ninja
  

TechElixir > SharePoint Ninja > Posts > Stopping Application Services with PowerShell
Stopping Application Services with PowerShell
There are times you might want to stop a service instance (like the User Profile Synchronization Service) on SharePoint 2010 and the UI is not letting you stop it. This happens in instances where it might get hung up (due to something like a permissions issue). When this happens you will have to use the PowerShell command
 
stop-spserviceinstance <GUID of service instance>
 
Since you probably don't know the GUID of your service instance off the top of your head you need to use the following PowerShell command to show all the GUIDs of the service instance.
 
get-spserviceinstance
 
This will give you the listing in your powershell window. If you haven't done copy and paste inside the powershell command window it can be a bit tricky. First right click anywhere in the command window and choose Mark and then click on first letter/number of the GUID you want and drag the mouse to the end of the GUID. Then press the Enter key. Now it is in memory so you can right click after your command and choose Paste to put the GUID in.
 
Note: you need to put single quotes around your GUID and you will be asked to enter a Y or press enter to really stop it.
 
Example:
 
stop-spserviceinstance '5e4ae2d7-c364-4395-8cc9-c80dca4
a1c7f'

Comments

There are no comments yet for this post.