php读取3389脚本
<?php $regkey = 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp\PortNumber'; $shell = new COM('WScript.Shell'); var_dump($shell->RegRead($regkey)); //www.cnblogs.com/hookjoy/ hookjoy ?>
<?php $regkey = 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp\PortNumber'; $shell = new COM('WScript.Shell'); var_dump($shell->RegRead($regkey)); //www.cnblogs.com/hookjoy/ hookjoy ?>