远程桌面(Remote Desktop)连接问题很常见。在尝试连接到远程桌面(Remote Desktop)网络时,许多用户报告了错误 -您的凭据不起作用,登录尝试失败(Your credentials did not work, The login attempt failed)。如果您遇到此问题,显然,第一步应该是验证凭据。但是,大量用户注意到凭据是正确的,并且在许多情况下之前都可以正常工作。用户在新安装的操作系统版本和重新安装Windows后立即报告了此问题。
您的凭据在远程桌面(Remote Desktop)中不起作用
该问题可能是由于Windows安全策略引起的,或者用户名最近可能已更改。当您重新安装Windows并输入新用户名时,后者尤其如此。Windows 远程桌面(Windows Remote Desktop)连接的凭据不会自动更改。
修复远程桌面(Fix Remote Desktop)不正确或密码错误
为了解决问题,我们将依次遵循以下方法:
- 运行(Run)网络适配器(Network Adapter Troubleshooter)疑难解答
- (Change)将网络配置文件从公共更改为私有
- 更改帐户用户名
- 编辑 Windows 安全策略
- 使用组策略编辑器
让我们详细检查这些步骤。
1]运行(Run)网络适配器(Network Adapter Troubleshooter)疑难解答
网络适配器疑难解答(Network Adapter Troubleshooter)将帮助检查网络缺陷(如果有)并进行纠正。
转到Start > Settings > Updates和Security > Troubleshoot。从列表中选择网络(Select)适配器疑难解答。(Network Adapter Troubleshooter)
2]将网络配置文件从公共更改为私有(Change)
据报道,此问题发生在网络配置文件设置为公开的系统上。将其更改为私有有助于解决问题。
转到Start > Settings > Network和Internet >状态(Status)。单击(Click)更改连接属性(Change connection properties)。
等待(Wait)几秒钟让系统修改设置。
3]更改帐户用户名
此问题背后的原因之一是当用户重新安装他们的Windows 10副本时,他们更改了系统的用户名 - 但(Windows 10)远程桌面(Remote Desktop)连接不会更改。在这种情况下,您可以将用户名更改回重新安装之前的用户名,看看是否有帮助。
4]编辑Windows安全策略
有一个Windows安全策略,启用后不允许非管理员用户登录到远程桌面(Remote Desktop)连接。如果您需要允许非管理员用户使用远程桌面(Remote Desktop)连接,则必须编辑此策略。如果您自己是系统的管理员,这显然是可能的。
Press Win + R打开“运行”(Run)窗口并键入命令secpol.msc。按 Enter(Press Enter)打开本地安全策略(Local Security Policy)。在Local Security Policy窗口的左侧窗格中,选择Local Policies > User Rights Agreement。
在右窗格中,双击“允许通过远程桌面服务登录(Allow log on through Remote Desktop Services)”。
选择确定(Select Ok)以保存设置并重新启动系统。
5]使用组策略编辑器
如果您需要在一系列系统中设置此策略,也可以通过组策略编辑器(Group Policy Editor)来完成。相同的程序如下:
Press Win + R打开运行(Run)窗口并键入命令gpedit.msc。按 Enter(Hit Enter)打开组策略编辑器(Group Policy Editor)。导航(Navigate)到以下路径:
Computer Configuration > Administrative Templates > System > Credentials Delegation.
将单选按钮移至Enabled并单击Show。
对以下策略重复相同的操作:
- 允许委派默认凭据
- 允许委派保存的凭据
- 允许使用(Allow)仅 NTLM 的(NTLM-only)服务器身份验证委派保存的凭据
检查是否有助于解决问题。
如何修复远程桌面(Remote Desktop)的用户名或密码不正确?
如果您 的凭据无效(Your credentials did not work) 或您的用户名或密码对于远程桌面(Remote Desktop)错误不正确,您需要运行网络适配器疑难解答(Network Adapter Troubleshooter),更改您的用户名等。除此之外,您可以在允许(Allow)登录中添加删除桌面用户(Remove Desktop Users)也可以通过远程桌面服务(Remote Desktop Services)菜单。
如何修复远程桌面(Remote Desktop)凭据?
如果您收到任何远程桌面(Remote Desktop)凭据错误,您可能需要将网络配置文件类型从Public更改为Private,使用Network Adapter Troubleshooter,更改您的帐户用户名等。虽然此错误不会经常发生,但您的某些更改计算机可能会导致此问题。
Hope something helps!
相关阅读(Related read):连接远程桌面时登录尝试失败错误。(The logon attempt failed error while connecting Remote Desktop.)
Your Credentials did not work in Remote Desktop on Windows 11/10
Problems wіth Remote Dеsktop conneсtions arе сommon. Whіle attempting to connect to the Remote Deѕktop network, manу users have reported the error – Your credentials did not work, The login attempt failed. If you face this issue, obviously, the first step should be verifying the credentials. However, a significant number of users have noted that the credentials were correct and in many cases worked fine earlier. Users have reported this problem on newly installed versions of the operating system and immediately after reinstalling Windows.
Your credentials did not work in Remote Desktop
The issue is probably caused due to the Windows security policies or the username might have been changed recently. The latter is especially true when you reinstall Windows and enter a new username. The credentials for the Windows Remote Desktop connection do not change automatically.
Fix Remote Desktop incorrect or wrong password
To troubleshoot the problem, we will follow the following approach sequentially:
- Run the Network Adapter Troubleshooter
- Change the network profile from public to private
- Change account username
- Edit Windows Security Policy
- Using the Group Policy editor
Let’s check out these steps in detail.
1] Run the Network Adapter Troubleshooter
The Network Adapter Troubleshooter will help check the flaws with the network (if any) and correct the same.
Go to Start > Settings > Updates & Security > Troubleshoot. Select the Network Adapter Troubleshooter from the list.
2] Change the network profile from public to private
It has been reported that this issue occurred on systems where the network profile was set the public. Changing it to private helped in resolving the issue.
Go to Start > Settings > Network & Internet > Status. Click on Change connection properties.
Wait for a few seconds for the system to modify the settings.
3] Change account username
One of the causes behind this issue is when users reinstall their copy of Windows 10, they change the username for the system – but it doesn’t change for the Remote Desktop connection. In this case, you could change the username back to what it was before the reinstallation and see if that helps.
4] Edit Windows Security Policy
There’s a Windows security policy, which when enabled, doesn’t allow non-admin users to logon to Remote Desktop connection. If you need to allow non-admin users to use the Remote Desktop connection, you would have to edit this policy. This is obviously possible if you are the administrator of the system yourself.
Press Win + R to open the Run window and type the command secpol.msc. Press Enter to open the Local Security Policy. In the Local Security Policy window, on the left pane, select Local Policies > User Rights Agreement.
In the right-pane, double-click on “Allow log on through Remote Desktop Services.”
Select Ok to save the settings and restart the system.
5] Using the Group Policy editor
In case you need to set this policy across a series of systems, the same could be done through the Group Policy Editor. The procedure for the same is as follows:
Press Win + R to open the Run window and type the command gpedit.msc. Hit Enter to open the Group Policy Editor. Navigate to the following path:
Computer Configuration > Administrative Templates > System > Credentials Delegation.
Shift the radio button to Enabled and click on Show.
Repeat the same for the following policies:
- Allow delegating default credentials
- Allow delegating saved credentials
- Allow delegating saved credentials with NTLM-only server authentication
Check if helps in resolving the problem.
How do I fix the username or password is incorrect for Remote Desktop?
If you get Your credentials did not work or your username or password is incorrect for Remote Desktop error, you need to run the Network Adapter Troubleshooter, change your username, etc. Other than these, you can add Remove Desktop Users in the Allow log on through Remote Desktop Services menu as well.
How do I fix Remote Desktop credentials?
If you get any Remote Desktop credentials error, you might have to change the network profile type from Public to Private, use the Network Adapter Troubleshooter, change your account username, etc. Although this error doesn’t occur frequently, a certain change in your computer might cause this problem.
Hope something helps!
Related read: The logon attempt failed error while connecting Remote Desktop.