This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11912|Reply: 0

[windows] Windows 2003/2008 changes the Remote Desktop port script

[Copy link]
Posted on 1/12/2015 1:18:58 PM | | |

Save as a bat file, click Run to enter a new port automatically when prompted, and directly download the script to change the remote desktop port


@echo off
color 0a
title @@ Modify the port number of Windows XP/2003/2008 Remote Desktop Services @@
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% /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v PortNumber /t reg_dword /d %port% /f
echo.
echo *******************************
echo Restart Remote Desktop
echo *******************************
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t reg_dword /d 1 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t reg_dword /d 0 /f
echo.
echo press any key to exit...
pause>nul
exit





Previous:DNS resolution servers commonly used by computers (super complete!) )
Next:win2003 remote desktop port modification
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com