Search code examples
windowsservicewindows-services

NET START <SERVICE> - how/where to get the service name?


I need to create a common script to restart service:

net stop <service>
net start <service>

Problem is that I don't know the name of the service. For example for "printer spooler" is the name "spooler".

How can I find the name for any service?


Solution

    1. Start → Run
    2. Then type: services.msc.
    3. Double click on the service that you're interested in.

    You should see:

    enter image description here