
ZENworks® ESM 3.5 Administrator’s Manual 161
StartService
JScript
Action.StartService("lanmanworkstation","");
VBScript
Action.StartService "lanmanworkstation",""
Details:
Make sure you use the actual service name, not the display name.
StopService
JScript
Action.StopService("lanmanworkstation");
VBScript
Action.StopService "lanmanworkstation"
Details:
Make sure you use the actual service name, not the display name.
WriteRegistryDWORD
WriteRegistryString
JScript
var ret = Action.CreateRegistryKey(eLOCAL_MACHINE,"Software\\Novell","Tester");
if(ret == true)
Action.Trace("Create Key is Successful");
else
Action.Trace("Create Key did not work");
Action.WriteRegistryDWORD(eLOCAL_MACHINE,"Software\\Novell\\Tester","val1",24);
Action.WriteRegistryString(eLOCAL_MACHINE,"Software\\Novell\\Tester","val2","Novell");
VBScript