开3389:Cmd命令REGADDHKLM\SYSTEM\CurrentControlSet\Control\TerminalServer/vfDenyTSConnections/tREG_DWORD/d0/fSql命令开3389execmaster.dbo.xp_regwrite'HKEY_LOCAL_MACHINE','SYSTEM\CurrentControlSet\Control\TerminalServer','fDenyTSConnections','REG_DWORD',0;--关3389:execmaster.dbo.xp_regwrite'HKEY_LOCAL_MACHINE','SYSTEM\CurrentControlSet\Control\TerminalServer','fDenyTSConnections','REG_DWORD',1;查看3389端口execxp_regread'HKEY_LOCAL_MACHINE','SYSTEM\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp','PortNumber'dos下开启netstartterminalservicesnetstopterminalservicesreg命令开3389REGqueryHKLM\SYSTEM\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp/vPortNumber条命令查看远程桌面连接所端口少般默认显示0xd3d3389REGADDHKLM\SYSTEM\CurrentControlSet\Control\TerminalServer/vfDenyTSConnections/tREG_DWORD/d0/f?开启3389命令xp2003使用注册表查看HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TerminalServer\Wds\rdpwd\Tds\tcp\PortNumberDos下一句话开启3389远程端口的方式:开启3389:REGADDHKLM\SYSTEM\CurrentControlSet\Control\TerminalServer/vfDenyTSConnections/tREG_DWORD/d0/f查看远程终端:REGqueryHKLM\SYSTEM\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp/vPortNumber对XP和2003有效屡试不爽!0xd3d3389