<?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
?>
2022-03-27 12:45:50
<?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
?>