Windows – Discover a service’s binary path using the command line

serviceswindows

In windows, how can find out the binary path of a service using the command line?

Best Answer

To complete @joeqwewrty's answer, You can use:

sc qc "Service Name" 5000 | find "BINARY_PATH_NAME"

And if you have Display Name use:

sc getkeyname "Display Name"