服务器远程桌面端口修改后需要重启,不重启更改远程桌面端口

windows7、windows10、windows server2012等的操作基本相同,都要修改注册表.

a109c893c6f5dcc22d0723a95835aaad.png

事实上不用重启系统也可以生效

<1>按”win+r”快捷键,在对话框中输入services.msc

0ef90e8e323c38e6331e2bba7f9e926e.png

<2>查找Remote Desktop Services和Remote Desktop Configuration,点击重新启动。

56a7c4dc6ff46a72986f5ab5a98e1d63.pngps: 别忘了把防火墙规格加入新增端口

ps:有人问怎么改端口

转载。。。

@echo off

color 0a

title 修改Windows 2003/2008/win10远程桌面服务端口号

echo *******************************************************************

echo **************************************

echo *****************

echo *****

echo 正在修改端口为 12345,请稍候

reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp" /v PortNumber /t reg_dword /d 12345/f

reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v PortNumber /t reg_dword /d 12345/f

netsh firewall set opmode mode = enable

netsh firewall set portopening all 80 web enable

netsh firewall set portopening all 3389 remote-pre enable

netsh firewall set portopening all 12345remote enable

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 正在自动重新启动电脑以便端口生效!

shutdown -r -t 1

pause

exit

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值