Restart Windows Service from NodeRED

Is anyone out there who can tell me how to restart a windows service within nodered?
I found on goolge this commands:
net start "Servicename" and sc start "Servicename"
both commands work fine as admin in cmd

but how can i use it within nodered exec node? How can i add the admin rights?

Best regards

You have to set the account that runs node-red to have the permission to stop/start a service.

see this

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.