<?php
exec("ipconfig.exe",$output_array,$return_val);
echo "Returned $return_val <br><pre>";
foreach ($output_array as $o)
{
echo "$o <br>";
}
echo "</pre>";
?>
<?php
echo exec('ipconfig');
//echo exec('whoami');
//echo exec('calc');
$info = system('ipconfig /all');
echo $info;
?>