Skip to content

Windows Service

  • Action
  • System
  • Advanced mode

Starts, stops or restarts a Windows service (as Services or Task Manager does) and waits until it's done. Most services need administrator rights: then MacroWin asks through Work with admin windows' helper (Settings > General), which asks you once.

In the editor, press Space on the canvas to add a step, then open Actions > System, or type its name. In Simple mode it's under Show all, and search finds it.

Settings

Service

Text Required

Its name or its display name, e.g. Spooler or Print Spooler.

Starts as: empty Takes ${variables} and expressions Can come from another step's output

Action

A choice
  • Start
  • Stop
  • Restart

Starts as: Start Can come from another step's output

Wait until it's done

On or off

Starts as: On Can come from another step's output

Time limit (ms)

A duration More options

How long to wait for it to be running or stopped.

Starts as: 30000 Can come from another step's output

Where it continues

  • Out: Continues here when it's done.
  • Failed: Continues here when it fails; the reason is in the run log.

Outputs

Values the step gives to the steps after it. In the Graph view, drag a wire from an output to another step's field.

Windows Service outputs
OutputGivesWhat it is
StateTextrunning, stopped, starting, stopping or paused, afterwards.
ErrorTextWhy it failed; empty when it worked.

More in System