Action.Trace( "MinimumWiFiSecurityState = " & ret)
ret = Query.IsWiredDisabled()
Action.Trace( "IsWiredDisabled = " & ret)
ret = Query.IsDialupDisabled()
Action.Trace( "IsDialupDisabled = " & ret)
Storage Namespace
There are two kinds of storage in the Endpoint Security Client storage space. Persistent storage
remains between sessions of the client, while transient storage exists only for the duration of the
client. Transient values can be accessed in each rule script invocation. Also, persistent storage can
only store and retrieve string values, while transient storage store and retrieve those values that a
VARIANT can hold.
NOTE: Each script variable stored in the "secure store" is preceded by a "rule id" (one for each
script). Variables that need to be shared between scripts MUST have a forward slash BEFORE the
variable name in EACH "persist" function accessing them to make that variable global, or
accessible, to each script:
Example - "global" variable between scripts: "boolWarnedOnPreviousLoop"
Storage.PersistValueExists("/boolWarnedOnPreviousLoop");
SetNameValue, NameValueExists, GetNameValue
JScript:
var ret;
Storage.SetNameValue("testval",5);
ret = Storage.NameValueExists("testval");
Action.Trace("NameValueExists = " + ret);
ret = Storage.GetNameValue("testval");
Action.Trace("GetNameValue = " + ret);
VBScript:
dim ret
Storage.SetNameValue "testval",5
ret = Storage.NameValueExists("testval")
Action.Trace("NameValueExists = " & ret)
ret = Storage.GetNameValue("testval")
Action.Trace("GetNameValue = " & ret)
SetPersistString, PersistValueExists, GetPersistString
JScript:
var ret;
Storage.SetPersistString("teststr","pstring");
ret = Storage.PersistValueExists("teststr");
Action.Trace("PersistValueExists = " + ret);
ret = Storage.GetPersistString("teststr");
Action.Trace("GetPersistString = " + ret);
VBScript:
Creating and Distributing Security Policies 159
Need help?
Do you have a question about the ZENWORKS ENDPOINT SECURITY MANAGEMENT 3.5 - ADMINISTRATION and is the answer not in the manual?