<html><head>
<title>wmi客户端ip_www.jb200.com</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);
//document.formbar.submit();
</script>
<script language=jscript event=onobjectready(objobject,objasynccontext) for=foo>
if(objobject.ipenabled != null && objobject.ipenabled != "undefined" && objobject.ipenabled == true)
{
if(objobject.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.dns
hostname != null && objobject.dnshostname != "undefined")
sdnsname = objobject.dnshostname;
}
</script>
<meta content="mshtml 6.00.2800.1106" name=generator></head>
<body>
<object 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> </form></body></html>
<object id=locator classid=clsid:76a64158-cb41-11d1-8b02-00600806d9b6 viewastext></object>
<object id=foo classid=clsid:75718c9a-f029-11d1-a1ac-00c04fb6c223></object>