Novell ZENworks Endpoint Security Management 3.5 Instrukcja Użytkownika Strona 155

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 154
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
Przeglądanie stron 154
1 2 ... 150 151 152 153 154 155 156 157 158 159 160 ... 244 245

Komentarze do niniejszej Instrukcji

Brak uwag