Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 远程桌面连接客户端无法记住账户 #23

Closed
Dream4ever opened this issue May 29, 2018 · 0 comments
Closed

Windows 远程桌面连接客户端无法记住账户 #23

Dream4ever opened this issue May 29, 2018 · 0 comments
Labels
Server The invisible hero

Comments

@Dream4ever
Copy link
Owner

需求描述

似乎是在 Windows 10 升级到 1803 版本之后,每次远程桌面连接到同样是 Windows 系统的阿里云服务器上的时候,就总是提示需要输入账户密码。

之前在本机设置过远程桌面连接客户端,保存了账户信息,是可以直接登录到服务器上的。这么一看,很可能是 Windows 10 版本升级之后,改了系统中的某些默认设置,因为之前使用远程桌面连接时也没有修改过系统设置。

解决过程

最开始是用中文关键字搜索的,发现尝试了几个结果都不起作用,于是换英文关键字 windows remote desktop remember my credentials 进行搜索。

第一个链接虽然是微软官网的,但是感觉讲的不够详细,那就再往后看。

第二个链接是 Super User 上的(Super User 相当于运维界的 Stack Overflow),这个链接应该比较靠谱。照着 最高票回答 做了一番设置,发现不起作用。

于是接着看 Google 的搜索结果,第四个链接 How to Fix RDP not Saving Password / Credentials 讲了一些和第二个链接不太一样的东西,照着设置了一番,这下果然好了!

要点总结

  • 如果发现通过 Windows 远程桌面连接来登录服务器时,服务器总是需要输入账号和密码才能登录,那说明客户端这边的配置有问题,需要进行修改。
  • 客户端需要设置两个地方,在组策略编辑器中(按快捷键 Win+R 弹出运行窗口,然后输入 gpedit.msc 即可打开该编辑器),在 计算机配置 => 管理模板 => Windows 组件 => 远程桌面服务 => 远程桌面连接客户端 这个选项中,不允许保存密码在客户端计算机上提示提供凭据 这两项都要设置为 未配置 状态。
  • 计算机配置 => 管理模板 => 系统 => 凭据分配 这个选项中,允许分配默认凭据用于仅 NTLM 服务器身份验证允许分配默认凭据允许分配保存的凭据允许分配保存的凭据用于仅 NTLM 服务器身份验证 这四个选项,都要设置为 已启用 状态,勾选 将 OS 默认值与上述输入连接起来 选项,并点击 将服务器添加到列表 右侧的 显示 按钮,将 TERMSRV/* 这个值添加进来,并点击确定。
@Dream4ever Dream4ever added the Back-end Where data really come and go label May 29, 2018
@Dream4ever Dream4ever added Server The invisible hero and removed Back-end Where data really come and go labels May 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Server The invisible hero
Projects
None yet
Development

No branches or pull requests

1 participant