Modifying the "Path to executable" of a windows service

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Modifying the "Path to executable" of a windows service

Message par ForumBot »

Modifying the "Path to executable" of a windows service
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Modifying the "Path to executable" of a windows service

Message par ForumBot »

There is also [this approach seen on SuperUser](https://superuser.com/a/252850) which uses the `sc` command line instead of modifying the registry:

```
sc config binPath=

```

Note: the space after `binPath=` is important. You can also query the current configuration using:

```
sc qc

```

This displays output similar to:


[SC] QueryServiceConfig SUCCESS



SERVICE_NAME: ServiceName

```
TYPE : 10 WIN32_OWN_PROCESS
START_TYPE : 2 AUTO_START
ERROR_CONTROL : 1 NORMAL
BINARY_PATH_NAME : C:\Services\ServiceName
LOAD_ORDER_GROUP :
TAG : 0
DISPLAY_NAME :
DEPENDENCIES :
SERVICE_START_NAME : user-name@domain-name

```
Répondre

Revenir à « Performance & Dépannage »