The author is forgiven for not being able to identify the original author of the article because it cannot be found. If there is a problem or infringe upon your interests, please contact me.
<HTML> <HEAD> <title>wmi scripting html</title> <meta http-equiv=content-type content= " text/html; charset=gb2312 "> <script language=jscript event=" oncompleted (Hresult,perrorobject, PAsyncContext) "For=foo"
> Document.forms[0].txtmacaddr.value=unescape (MACADDR);
Document.forms[0].txtipaddr.value=unescape (IPADDR);
Document.forms[0].txtdnsname.value=unescape (Sdnsname); </SCRIPT> <script language=jscript event=onobjectready (objobject,objasynccontext) for=foo> if (objObje Ct. IPEnabled!= null && objobject.ipenabled!= "undefined" && objobject.ipenabled = = True) {if (objobj Ect.
MACAddress!= null && objobject.macaddress!= "undefined") macaddr = objobject.macaddress;
if (objobject.ipenabled && objobject.ipaddress (0)!= null && objobject.ipaddress (0)!= "undefined")
ipaddr = objobject.ipaddress (0); if (objobject.dnshostname!= null && objobject.dnshostname!= "undefined") Sdnsname = Objobject.dnshostname; } </SCRIPT> <meta content= "MSHTML 6.00.2800.1106" name=generator> </HEAD> <BODY> <o Bject id=locator classid=clsid:76a64158-cb41-11d1-8b02-00600806d9b6 viewastext></object> <OBJECT Id=foo classid=clsid:75718c9a-f029-11d1-a1ac-00c04fb6c223></object> <script language=JScript> var service = Locator.
ConnectServer ();
var macaddr;
var ipaddr;
var domainaddr;
var sdnsname; Service. Security_.
impersonationlevel=3; Service.
Instancesofasync (foo, ' Win32_NetworkAdapterConfiguration '); </SCRIPT> <form id=formfoo name=formbar action=nicpost.asp method=post> <input VALUE=00:05:5D:0E:C7:FA name=txtmacaddr> <input value=192.168.0.2 name=txtipaddr> <input Value=typ name=txtDNSName> </F Orm> </BODY> </HTML>