Stop/Start a Windows service

  • This is one way to stop or start a Windows service:

    {"trigger":"Stop web server","command":"sc stop w3svc","ground":"foreground","voice":"stop web"},
    {"trigger":"Start web server","command":"sc start w3svc","ground":"foreground","voice":"start web"},

    Or if you want to stop and immediately start a service, you can do this:

    sc stop spooler & sc start spooler

Log in to reply