###Windows server 2003 / Windows xp
net start termservice
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fSingleSessionPerUser /t REG_DWORD /d 0 /f
wmic path win32_terminalservicesetting where (__CLASS != "") call setallowtsconnections 1
###Win08 /Win7 /Win12
步骤一:复制一下命令保存成1.bat然后运行...
echo DO ALL IN CMD!
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp" /v PortNumber /t REG_DWORD /d 3389 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v PortNumber /t REG_DWORD /d 3389 /f
步骤二:运行完毕,使用管理员命令提示符输入一下命令并在提示服务运行后,即可远程3389连接。
net start termservice
标签:CurrentControlSet,Windows,3389,Terminal,add,集合,DWORD,REG From: https://blog.51cto.com/u_16190539/7627700