AnsweredAssumed Answered

LUA - Stop & Restart Windows Service

Question asked by sbolyard on Apr 8, 2014
Latest reply on Apr 8, 2014 by sbolyard

I have little to no experience with LUA.  I want to stop and restart a service on a Window's server.  I found some information on a different post.  I've taken pieces of it and added my own information.  The script executes without error, but the service never goes to a stop status.  Any help would be greatly appreciated.  I'm using the Windows Audio service to test this script on.

 

service1_pds = pds.create()
pds.putString(service1_pds, "Windows_Audio", "AudioSrv")

nimbus.request("/nmsprimary/nimsofthub2/orion/ntservices", "stop_service", service1_pds)

Outcomes