- @echo off
- :lp
- set /p port1=请输入端口:
- set /p prot2=请再次输入端口:
- if %port1%==%port2% (
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v portnumber /d %port1% /f
- reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\wds\rdpwd\tds\tcp" /v portnumber /d %port1% /f) else (goto :lp)
复制代码
|