Answers:
打开组策略编辑器(开始>运行> gpedit.msc),然后导航到 Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Connection Client
对于value Do not allow passwords to be saved
,请更改为Disabled。
在远程桌面连接器中连接到计算机时,请展开“选项”面板并确认Allow me to save credentials
已选中。
实际上找到了解决此问题的链接(archive.org):
我在Windows 10上遇到问题,尝试连接到新计算机时使用永久密码询问。
首先,RDP中的密码行必须命名为:
password 51:b:myEncryptedPassword
而且通行证必须经过加密。您可以使用cryptRDP5进行转换:https : //github.com/jps-networks-modifiedOSS/openvpn-als-applications/tree/master/adito-application-rdp-xplatform-embedded/src/windows
cryptRDP5.exe yourpassword
我已经将@barfoon答案转换为注册表脚本,以允许其自动部署...或者只是节省了通过gpedit.msc导航的麻烦:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Terminal Services]
"DisablePasswordSaving"=dword:00000000
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CredentialsDelegation]
"AllowDefaultCredentials"=dword:00000001
"AllowDefaultCredentialsWhenNTLMOnly"=dword:00000001
"ConcatenateDefaults_AllowDefault"=dword:00000001
"AllowSavedCredentials"=dword:00000001
"ConcatenateDefaults_AllowSaved"=dword:00000001
"AllowSavedCredentialsWhenNTLMOnly"=dword:00000001
"ConcatenateDefaults_AllowSavedNTLMOnly"=dword:00000001
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CredentialsDelegation\AllowDefaultCredentials]
"1"="TERMSRV/*"
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CredentialsDelegation\AllowSavedCredentials]
"1"="TERMSRV/*"
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CredentialsDelegation\AllowSavedCredentialsWhenNTLMOnly]
"1"="TERMSRV/*"
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CredentialsDelegation\AllowDefaultCredentialsWhenNTLMOnly]
"1"="TERMSRV/*"
只需将其保存在filename.reg
文件中,双击即可享受。