A SERVICE OF

logo

ZENworks® ESM 3.5 Administrator’s Manual 155
VBScript
Action.SwitchLocationByName("Base")
Action.Stamp()
Action.Trace("Begin 20 second sleep")
Action.Sleep(20000)
Action.SwitchLocationByName("Base")
Action.ClearStamp()
Details:
Base must be the name of a valid location which can be stamped. This script will then switch to location
Base, then stamp it, sleep for 20 seconds, make sure we didn't spin out of the location by switching back to
base and then clear the stamp. This script performed all actions as expected.
CreateRegistryKey
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");
VBScript
dim ret
ret = Action.CreateRegistryKey(eLOCAL_MACHINE,"Software\\Novell","Tester")
if(ret = true) then
Action.Trace("Create Key is Successful")
else
Action.Trace("Create Key did not work")
end if
DeleteRegistryKey
JScript