Thomas Sundberg

May 16, 2013

Change the binary path for a Windows service

Filed under: Programming — Tags: , , , , — Thomas Sundberg @ 21:00

This post has been migrated to

Do you need to change the path to a binary a Windows sevice is executing? Maybe you want to change the location of where a service is installed?

It can be done suing the command sc and setting the binpath.

It is also possible to update the registry.

The way to update the registry is:

  • Stop the service
  • Locate the service in the windows registry and modify the value of the ‘ImagePath’ key to the new binary
  • Start the service

The service can be found at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<your service name>

I needed to move Splunk so I found one of my services at


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

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

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

Blog at

%d bloggers like this: