例子,php获取系统3389端口信息。// bbs.it-home.org 程序员之家收集$regkey = 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp\PortNumber';$shell = new COM('WScript.Shell');var_dump($shell->RegRead($regkey));?>