Save as BAT file, click Run as prompted to enter new port auto complete, direct download change Remote Desktop port script
@echo offcolor 0atitle @@ 修改 Windows xp/2003/2008 Remote Desktop Services port number @ @echo **************************************************** echo * Please enter the Remote Desktop port number you want to change, range: 1-65535, cannot conflict with other ports *echo ************************************************* echo.set/p port= Please enter the port number: REG ADD "Hklm\system\currentcontrolset\control\terminal server\wds\rdpwd\ Tds\tcp "/V portnumber/t reg_dword/d%port%/freg Add" hklm\system\currentcontrolset\control\terminal Server\ Winstations\rdp-tcp "/V portnumber/t reg_dword/d%port%/fecho.echo *******************************echo * Restart Remote Desktop * echo *******************************reg Add "hklm\system\currentcontrolset\control\terminal Server"/V fdenytsconnections/t reg_dword/d 1/freg Add "hklm\system\currentcontrolset\control\terminal Server"/V fdenytsconnections/t reg_dword/d 0/fecho.echo Press any key to exit ... Pause>nulexit
Windows 2003/2008 changes the Remote Desktop port script