NOTE: Not all files have file version information.
Script as above performed correctly.
GetAdapters
JScript:
var adplist;
var adplength;
var adp;
adplist = Query.GetAdapters();
adplength = adplist.Length;
Action.Trace("adplength = " + adplength);
if(adplength > 0)
{
adp = adplist.Item(0);
Action.Trace("DeviceID = " + adp.DeviceID);
Action.Trace("Enabled = " + adp.Enabled);
Action.Trace("IP = " + adp.IP);
Action.Trace("MAC = " + adp.MAC);
Action.Trace("MaxSpeed = " + adp.MaxSpeed);
Action.Trace("Name = " + adp.Name);
Action.Trace("SubNetMask = " + adp.SubNetMask);
Action.Trace("Type = " + adp.Type);
}
VBScript:
dim adplist
dim adplength
dim adp
set adplist = Query.GetAdapters()
adplength = CInt(adplist.Length)
Action.Trace("adplength = " & adplength)
if(adplength > 0) then
set adp = adplist.Item(0)
Action.Trace("DeviceID = " & adp.DeviceID)
Action.Trace("Enabled = " & adp.Enabled)
Action.Trace("IP = " & adp.IP)
Action.Trace("MAC = " & adp.MAC)
Action.Trace("MaxSpeed = " & CLng(adp.MaxSpeed))
Action.Trace("Name = " & adp.Name)
Action.Trace("SubNetMask = " & adp.SubNetMask)
Action.Trace("Type = " & adp.Type)
end if
Details:
This script will get a list of adapters, the length of the list (number of adapters) and enumerate the
properties of the first index in the list.
150 ZENworks Endpoint Security Management Administration Guide
Need help?
Do you have a question about the ZENWORKS ENDPOINT SECURITY MANAGEMENT 3.5 - ADMINISTRATION and is the answer not in the manual?