Hi Jon
I have the services restart of the script working but can't get the kill_process to work, here is my edited version as a test on the print spooler.
procs, rc = nimbus.request("/Domain/NMSTunnelServer1/rt-w28s-006/processes", "list_processes")
process_pds = pds.create()
for _,process in pairs (procs) do
if string.match(process.executable, "C:\Windows\System32\spoolsv.exe") then
pds.putInt(process_pds, "pid", process.process_id)
nimbus.request("/Domain/NMSTunnelServer1/rt-w28s-006/processes", "kill_process", process_pds)
end
end
Kind regards
Dave