Ad Widget

Collapse

Windows Service restart - One action to catch them all?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kjetil_maland
    Junior Member
    • Sep 2014
    • 11

    #1

    Windows Service restart - One action to catch them all?

    Hi, need some input regarding service restarts on Windows.
    I've managed the regular remote command 'net start W3SCV' etc.
    But find it somewhat annoying to make one action for each service we need to have auto restart for.

    Is there a way to pick up the service name from the trigger item ?

    Lets say i have a trigger like this:
    service_state[ImportantService].last()}#0

    Can i pick up the bit inside [] and then use that in my 'Net start' ?
    without coing through script?
Working...