When you are connecting to the remote Windows host using a native Microsoft RDP client (mstsc.exe), you can save your login credentials in order to not to enter them each time. You just need to tick the “Remember me” option in the RDP connection window. In this case, Windows will save your Remote Desktop password to the Windows Credentials Manager.
Also, there is one more important thing. If you are trying to establish an RDP connection from a domain computer to a remote computer in a workgroup or another domain, it is not allowed to use saved credentials to access the remote RDP/RDS host. Remote Desktop client refuses usage of saved credentials, each time forcing you to re-enter your password with the following error message: Your system administrator does not allow the use of saved credentials.
Remote Desktop Doesn’t Allow Saved Credentials
In some cases, when you try to connect to the Remote Desktop, you may receive the following error message:
Your Credentials did not work
Your system administrator does not allow the use of saved credentials to log on to the remote computer server_name because its identity is not fully verified. Please enter new credentials.
The logon attempt failed
Your System Administrator Does Not Allow the Use of Saved Credentials: What Does This Mean?
You cannot use saved credentials to connect to a remote computer if there are no trust relationships between your computer and the host in a remote domain (or workgroup). This is defined by the default Windows security policy settings.
Configure Group Policy to Allow the Use of Saved Remote Desktop Credentials
Run the Local Group Policy Editor on a computer from which you are establishing the Remote Desktop connection. Press Win + R, type the following command and then click OK.
Additionally, you may need to enter an Administrator password or confirm the elevation (depending on the UAC policy settings).
In the Local Group Policy Editor console go to the section Local Computer Policy > Computer Configuration > Administrative Templates > System > Credentials Delegation. Find the policy named “Allow delegating saved credentials with NTLM-only server authentication”.
Open the policy item and enable it, then click the Show button.
In the new window, you need to add the list of servers/computers that are explicitly allowed to use the saved credentials when connecting over RDP.
The list of allowed systems must be specified in one of the following formats:
- TERMSRV/remote_pc — allow saving login credentials for a specific computer;
- TERMSRV/*.theitbros.com — allow using the saved credentials for all computers in the domain theitbros.com;
- TERMSRV/* — allow using of saved RDP credentials for all computers, without exception.
Note. Use TERMSRV in uppercase, as in the example. If you specify a specific computer, remote_pc value must exactly match the name entered in the “Computer” field of the RDP client.
Find and enable the policy “Allow delegating saved credentials” in the same Credentials Delegation GPO section. Add the same TERMSRV/ values to the policy setting as mentioned above.
Press OK to save changes and then close the Group Policy Editor. Open Command prompt and update the Group Policy settings by running:
Now you should connect to the Remote Desktop with saved credentials without providing a password over and over again.
So, we allowed saving the login credentials only on one particular computer using Local Group Policy.
In order to allow saved RDP credentials usage for multiple domain computers, it will be better to create a separate domain GPO. You can use the Group Policy Management Console (GPMC.msc) to create and link the new GPO with the settings above to the computers’ OU.
Server Authentication Policy Does Not Allow Saved Credentials
In some cases, you may see the following error message when try to use the saved RDP credentials:
Your credentials did not work
The server’s authentication policy does not allow connection requests using saved credentials. Please enter new credentials.
This error message indicates the remote server does not allow the use of saved RD credentials to connect. To fix this error, you need to make changes to the settings of the remote computer/RDS host:
- On the remote computer, run the local GPO editor – gpedit.msc;
- Go to the GPO section Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Security;
- Locate and change the policy value ‘Always prompt for password upon connection‘ to Disabled;
- Reboot your server.
If this policy is enabled, Remote Desktop Services must always prompt a client for passwords upon RDP connection.
You can also change this parameter on the RDS server with one command in the elevated cmd:
REG add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v fPromptForPassword /t REG_DWORD /d 0 /f
Saved Credentials Didn’t Work in Remote Desktop Connection
In some cases, you will not be able to connect to remote hosts using the saved RDP credentials even after configuring the above Group Policy settings.
If you can’t connect to the remote computer using saved RDP credentials, try to delete all old saved credentials in the Windows Credential Manager (Control Panel\All Control Panel Items\Credential Manager\Windows Credentials).
Delete all the saved entries from the Windows Credentials and Generic Credentials lists.
Then you can manually add your RDP credentials under Generic Credentials.
- Click the Add a generic credential link;
- Put the prefix “TERMSRV/” in the Internet or Network Address before your Remote Desktop host name or IP address;
- Set RDP user name and password;
- Click OK.
Also, you can add a credential to the Credential Manager from the command prompt using the built-in cmdkey tool:
cmdkey /generic:termsrv/sql01.theitbros.com /user:jbrown /pass:RDP_SupPassw0rd2
CMDKEY: Credential added successfully.
You can display information about the stored credentials for the specific host:
Currently stored credentials for TERMSRV/sql01.theitbros.com:
Hint. All stored passwords in the Windows Credential Manager store are SHA encrypted with the current user’s login password.
Then you should check the following policies that may prevent Windows from saving passwords. To get the current GPO parameter settings on your computer, use the gpresult tool or rsop.msc
- Network access: Do not allow storage of passwords and credentials for network authentication (Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options). Make sure this policy is disabled. This policy corresponds to the registry parameter DisableDomainCreds under the reg key HKLM\SYSTEM\CurrentControlSet\Control\Lsa\. Change its value from 1 to 0;
- Deny delegation saved credentials (Computer Configuration > Administrative Templates > System > Credentials Delegation). Disable the policy. Check the value of the ConcatenateDefaults_DenySaved registry entry (HKLM\Software\Policies\Microsoft\Windows\CredentialsDelegation). Change the value to 0;
- Do not allow passwords to be saved (Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Connection Client). Disable the policy.
Hope this was useful!