• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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.
  • R
    Russ
    last edited by Russ Jul 29, 2017, 10:27 PM Mar 25, 2017, 9:49 PM

    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
    1 out of 1
    • First post
      1/1
      Last post