win10 开启远程桌面3389

如果简单的设置,参照下图设置即可

然后gpedit.msc编辑组策略

选择【管理模板】->【Windows组件】->【远程桌面服务】->【远程桌面会话主机】->【连接】

允许用户远程连接:配置 【限制连接的数量】,已启用 允许的RD最大连接数 即为最大的连接数量,修改为你需要的数字,如999999

设置连接数 【将远程桌面服务用户限制到单独的远程桌面服务会话】,改成 “已禁用”

选择【管理模板】->【Windows组件】->【远程桌面服务】->【远程桌面会话主机】->【会话时间限制】

调整已中断会话的时间限制,可选。

如果需要多用户多会话,那么使用rdpwrap开源组件。

https://github.com/stascorp/rdpwrap

不同版本的windows需要不同的配置文件,请自行查找。

版本号查看 C:\Windows\System32\termsrv.dll 右击属性的版本

或者,通过RDPWrapper软件中自带的RDPConf.exe检测

以下是一些参考

更新
https://github.com/rustaman2012/rdpwrapper
一些老的
https://github.com/infowayrs/INI-RDPWRAP
一些新的
https://github.com/sebaxakerhtc/rdpwrap.ini

如果需要空密码登录3389,可以修改组策略或者下面的批处理

echo 允许空密码连接设置
reg add HKLM\SYSTEM\CurrentControlSet\Control\Lsa\ /v limitblankpassworduse /d 0 /f
taskkill /f /im explorer.exe & start explorer.exe

断开远程会话并把会话交还给本机,可以在远程系统执行以下命令

@%windir%\System32\tscon.exe 0 /dest:console
@%windir%\System32\tscon.exe 1 /dest:console
@%windir%\System32\tscon.exe 2 /dest:console
@%windir%\System32\tscon.exe 3 /dest:console

切换管理员帐户
powershell 管理员身份运行
net user administrator /active:yes

点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注