TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Stop/Start a Windows service

    Windows
    1
    1
    5.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RussR
      Russ
      last edited by Russ

      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
      

      Russell VanderMey

      1 Reply Last reply Reply Quote 0
      • First post
        Last post