These interfaces are returned by one of the methods of the namespaces described in Section D.4, Script Namespaces or by one of the methods or properties of the following interfaces:
This interface returns information about an adapter.
JScript:
var adplist;
var adplength;
var adp;
var env;
var ret;
adplist = Query.GetAdapters();
adplength = adplist.Length;
Action.Trace("adplength = " + adplength);
if(adplength > 0)
{
adp = adplist.Item(0);
env = adp.GetNetworkEnvironment();
ret = env.DHCPCount;
Action.Trace("DHCPCount = " + ret);
ret = env.DNSCount;
Action.Trace("DNSCount = " + ret);
ret = env.GatewayCount;
Action.Trace("GatewayCount = " + ret);
ret = env.WINSCount;
Action.Trace("WINSCount = " + ret);
}
VBScript:
dim adplist
dim adplength
dim adp
dim env
dim ret
set adplist = Query.GetAdapters()
adplength = adplist.Length
Action.Trace("adplength = " & CInt(adplength))
if(CInt(adplength) > 0) then
set adp = adplist.Item(0)
set env = adp.GetNetworkEnvironment()
ret = env.DHCPCount
Action.Trace("DHCPCount = " & ret)
ret = env.DNSCount
Action.Trace("DNSCount = " & ret)
ret = env.GatewayCount
Action.Trace("GatewayCount = " & ret)
ret = env.WINSCount
Action.Trace("WINSCount = " & ret)
end if
See GetAdapters.
See GetAdapters.
See GetAdapters.
See GetAdapters.
See GetAdapters.
See GetAdapters.
See GetAdapters.
See GetAdapters.
This interface returns environment data about a server or wireless access point.
This interface provides network environment information.
JScript:
var adplist;
var adplength;
var adp;
var env;
var ret;
var item;
adplist = Query.GetAdapters();
adplength = adplist.Length;
Action.Trace("adplength = " + adplength);
if(adplength > 0)
{
adp = adplist.Item(0);
env = adp.GetNetworkEnvironment();
ret = env.DHCPCount;
Action.Trace("DHCPCount = " + ret);
if(ret > 0)
{
item = env.GetDHCPItem(0);
ret = item.IP;
Action.Trace("IP = " + ret);
}
}
VBScript:
dim adplist
dim adplength
dim adp
dim env
dim ret
dim item
set adplist = Query.GetAdapters()
adplength = adplist.Length
Action.Trace("adplength = " & CInt(adplength))
if(CInt(adplength) > 0) then
set adp = adplist.Item(0)
set env = adp.GetNetworkEnvironment()
ret = env.DHCPCount
Action.Trace("DHCPCount = " & ret)
if(ret > 0) then
set item = env.GetDHCPItem(0)
ret = item.IP
Action.Trace("IP = " & ret)
end if
end if
JScript:
var adplist;
var adplength;
var adp;
var env;
var ret;
var item;
adplist = Query.GetAdapters();
adplength = adplist.Length;
Action.Trace("adplength = " + adplength);
if(adplength > 0)
{
adp = adplist.Item(0);
env = adp.GetNetworkEnvironment();
ret = env.DNSCount;
Action.Trace("DNSCount = " + ret);
if(ret > 0)
{
item = env.GetDNSItem(0);
ret = item.IP;
Action.Trace("IP = " + ret);
}
}
VBScript:
dim adplist
dim adplength
dim adp
dim env
dim ret
dim item
set adplist = Query.GetAdapters()
adplength = adplist.Length
Action.Trace("adplength = " & CInt(adplength))
if(CInt(adplength) > 0) then
set adp = adplist.Item(0)
set env = adp.GetNetworkEnvironment()
ret = env.DNSCount
Action.Trace("DNSCount = " & ret)
if(ret > 0) then
set item = env.GetDNSItem(0)
ret = item.IP
Action.Trace("IP = " & ret)
end if
end if
JScript:
var adplist;
var adplength;
var adp;
var env;
var ret;
var item;
adplist = Query.GetAdapters();
adplength = adplist.Length;
Action.Trace("adplength = " + adplength);
if(adplength > 0)
{
adp = adplist.Item(0);
env = adp.GetNetworkEnvironment();
ret = env.GatewayCount;
Action.Trace("GatewayCount = " + ret);
if(ret > 0)
{
item = env.GetGatewayItem(0);
ret = item.IP;
Action.Trace("IP = " + ret);
}
}
VBScript:
dim adplist
dim adplength
dim adp
dim env
dim ret
dim item
set adplist = Query.GetAdapters()
adplength = adplist.Length
Action.Trace("adplength = " & CInt(adplength))
if(CInt(adplength) > 0) then
set adp = adplist.Item(0)
set env = adp.GetNetworkEnvironment()
ret = env.GatewayCount
Action.Trace("GatewayCount = " & ret)
if(ret > 0) then
set item = env.GetGatewayItem(0)
ret = item.IP
Action.Trace("IP = " & ret)
end if
end if
JScript:
var adplist;
var adplength;
var adp;
var env;
var ret;
var item;
adplist = Query.GetAdapters();
adplength = adplist.Length;
Action.Trace("adplength = " + adplength);
if(adplength > 0)
{
adp = adplist.Item(0);
env = adp.GetNetworkEnvironment();
ret = env.WINSCount;
Action.Trace("WINSCount = " + ret);
if(ret > 0)
{
item = env.GetWINSItem(0);
ret = item.IP;
Action.Trace("IP = " + ret);
}
}
VBScript:
dim adplist
dim adplength
dim adp
dim env
dim ret
dim item
set adplist = Query.GetAdapters()
adplength = adplist.Length
Action.Trace("adplength = " & CInt(adplength))
if(CInt(adplength) > 0) then
set adp = adplist.Item(0)
set env = adp.GetNetworkEnvironment()
ret = env.WINSCount
Action.Trace("WINSCount = " & ret)
if(ret > 0) then
set item = env.GetWINSItem(0)
ret = item.IP
Action.Trace("IP = " & ret)
end if
end if
JScript:
var adplist;
var adplength;
var adp;
var env;
var apitem;
var adptype;
var adpname;
var apcount;
var i;
adplist = Query.GetAdapters();
adplength = adplist.Length;
Action.Trace("adplength = " + adplength);
if(adplength > 0)
{
for(i=0;i < adplength;i++)
{
adp = adplist.Item(i);
adptype = adp.Type;
if(adptype == eWIRELESS)
{
Action.Trace("Wireless index = " + i);
adpname = adp.Name;
Action.Trace("adp = " + adpname);
env = adp.GetNetworkEnvironment();
apcount = env.WirelessAPCount;
Action.Trace("WirelessAPCount = " + apcount);
if(apcount > 0)
{
apitem = env.GetWirelessAPItem(0);
Action.Trace("apitem.SSID = " + apitem.SSID);
}
}
}
}
VBScript:
dim adplist
dim adplength
dim adp
dim env
dim apitem
dim adptype
dim adpname
dim apcount
dim i
set adplist = Query.GetAdapters()
adplength = adplist.Length
Action.Trace("adplength = " & CInt(adplength))
if(CInt(adplength) > 0) then
For i = 0 To (CInt(adplength) - 1)
set adp = adplist.Item(i)
adptype = adp.Type
if(adptype = eWIRELESS) then
Action.Trace("Wireless index = " & i)
adpname = adp.Name
Action.Trace("adp = " & adpname)
set env = adp.GetNetworkEnvironment()
apcount = env.WirelessAPCount
Action.Trace("WirelessAPCount = " & apcount)
if(apcount > 0) then
set apitem = env.GetWirelessAPItem(0)
Action.Trace("apitem.SSID = " & apitem.SSID)
end if
end if
Next
end if
This interface provides information about a wireless access point.
This interface is a list of adapters in the network environment.
See GetAdapters.