Change the binary path for a Windows service

Filed under: Windows, — Tags: Windows service, binpath, registry, sc — Thomas Sundberg — 2013-05-16

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:

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

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Splunkd

Resources



(less...)

Pages

About
Events
Why

Categories

Agile
Automation
BDD
Clean code
Continuous delivery
Continuous deployment
Continuous integration
Cucumber
Culture
Design
DevOps
Executable specification
Git
Gradle
Guice
J2EE
JUnit
Java
Javascript
Kubernetes
Linux
Load testing
Maven
Mockito
New developers
Pair programming
PicoContainer
Presentation
Programming
Public speaking
Quality
React
Recruiting
Requirements
Scala
Selenium
Software craftsmanship
Software development
Spring
TDD
Teaching
Technical debt
Test automation
Tools
Web
Windows
eXtreme Programming

Authors

Thomas Sundberg
Adrian Bolboaca

Archives

Meta

rss RSS