reg注册表脚本编写小记

示例:修改默认远程端口为53111

第一步:新建.记事本

第二步 写入以下信息,

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp]
"PortNumber"=dword:0000cf77

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp]
"PortNumber"=dword:0000cf77

第三步,修改文件后缀为.reg

第四步 ,撒双击运行

 

具体文档说明

https://blog.csdn.net/PingJingRZ/article/details/115581405

 

posted @ 2022-04-24 23:39  王卫朋  阅读(576)  评论(0编辑  收藏  举报