在管理员权限下使用命令
命令如下
regaddhklm\system\current控制集\ control\terminal ‘ ‘ server/vfdentsconnections/treg _ dword/d 00000000 /
文件内容如下
=====================================
echowindowsregistryeditorversion 5.003389.reg
echo [ HKEY _ local _ machine\system\current control set\control\terminalserver ] 3389.reg
echo“fdenytsconnections”=dword :00000003389.reg
echo [ HKEY _ local _ machine\system\current control set\control\terminalserver\WDS\rdpwd\TDS\TCP ] 333323333306;
echo“端口编号”=Dword:0000d3d3389.reg
echo [ HKEY _ local _ machine\system\current控制集\ control\terminalserver\winstations\RDP-TCP ] 3389
echo“端口编号”=Dword:0000d3d3389.reg
regedit /s 3389.reg
del 3389.reg