Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.
<?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.
Join the community of 500,000 technology professionals and ask your questions.