Did you find this useful?
Socialize it today.


How to Change a Service Path to Executable

Friday, October 28, 2011

Here is an easy tip that could say you a lot of time with regard to reinstalling a service simply because you provided the installation wizard with the wrong path, or maybe because you have moved the service's executable.

Changing or updating the value "Path to executable" in the Service's properties window is as easy as modifying the value in the local registry. Let us take a simple example. In the picture shown below, the properties of the "Alerter" service are displayed. If you wanted to change the value stored for the "Path to executable" property, you'll notice that you are not able to do so via the Service's properties windows.



service properties

To easily update this information, start the registry editor by clicking on the Start button --> Run --> type REGEDIT and hit the enter key. As shown below, the registry editor will start.

Navigate to the following location. In this example, we will modify the properties of the "Alerter" service, but you would locate the appropriate path in the registry for the service you are intending to modify.

HKLM\System\CurrentControlSet\Services\ServiceName

Locate the string object called "Image Path". Double click it and change the value to the correct location of the executable.



service properties

There is no need to restart the computer. If you go back to the service's properties (refresh if you still have the control panel services applet open), you will find that the new path is now being displayed correctly. You should be able to now start the service as expected.

Please help us spread the word by socializing it today!

email contact us

Did you find something wrong with the information on this page? Please take a moment to report it to us so that we can continue to improve the quality of the information on this site. Click here to report an issue with this page.



Recommended Books & Training Resources

MCITP Windows Server 2008 Enterprise Administrator: Training Kit 4-Pack: Exams 70-640 70-642 70-643 70-647 Windows Server 2008 R2 Unleashed