Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
<?php $host = "computer number"; $user = "doamin\user"; $pass = "password"; //$obj = new COM ( 'winmgmts://'. $displayasset .'/root/CIMV2' ); $wmiLocator = new COM('WbemScripting.SWbemLocator'); $obj = $wmiLocator->ConnectServer($host, 'root\cimv2', $user, $pass); // $fso = new COM ( "Scripting.FileSystemObject" ); $ipaddr = $obj->ExecQuery("SELECT IPAddress From Win32_NetworkAdapterConfiguration Where IPEnabled = True"); settype($ipaddr, "string"); echo $ipaddr; ?>
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Will someone give me a beginner's object oriented program to write, and then give me feedback?||4||81|
|Why am I getting SyntaxError: missing ; before statement error||39||83|
Join the community of 500,000 technology professionals and ask your questions.