Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.
<?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; ?>
Join the community of 500,000 technology professionals and ask your questions.