gxiv
gxiv

Reputation: 39

In Windows, how can I check the executable run by a Service?

The "Services" window enumerates all of the system services, but inspecting the properties of a given service doesn't show what is actually running behind the scenes.

Take, for example, the Apache2.4 service (shown in the image below), how can I see what executable is being run by this service and with what arguments?

Example from "Services" window

Upvotes: 1

Views: 3170

Answers (1)

gxiv
gxiv

Reputation: 39

In the Command Prompt you can use the sc program with the qc command (query configuration) to get this information for any service.

For the example given,

> sc qc Apache2.4

will give you information about the service, one section of which is the BINARY_PATH_NAME which will detail the exact command (with arguments) run by the service.

Upvotes: 2

Related Questions