Example, php obtains system port 3389 information.
-
// bbs.it-home.org Programmer's Home Collection
- $regkey = 'HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerWdsrdpwdTdstcpPortNumber';
- $shell = new COM('WScript.Shell');
- var_dump ($shell->RegRead($regkey));
- ?>
Copy code
|