Created
September 1, 2021 02:34
-
-
Save cute-angelia/55457753350a6e10e4f6b97b49d24b67 to your computer and use it in GitHub Desktop.
rdp_port
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@color 0A | |
@title 修改远程桌面端口号 | |
@echo off | |
echo 请输入端口号 | |
set /p port= | |
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp" /v PortNumber /t reg_dword /d %port% /f | |
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v PortNumber /t reg_dword /d %port% /f | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment