@color 0A @title 修改远程桌面端口号 by wjshan0808 @echo off echo 请输入端口号 set /p port= reg add "HKLMSYSTEMCurrentControlSetControlTerminal ServerWds dpwdTds cp" /v PortNumber /t reg_dword /d %port% /f reg add "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerWinStationsRDP-Tcp" /v PortNumber /t reg_dword /d %port% /f exit