In the old environment we were able to configure RDP connections for user to automatic logon to special systems e.g. Servers where their needed software is running.
In Windows 10 the security behavior has changed which by default does not allow to save passwords for an RDP connection. Also not via a text editor in the file itself.
This is the setup we need to use to make this available again. (Source: https://serverfault.com/questions/867467/rdp-file-with-embedded-password-asks-for-password)
- Create a RDP Connection file as you did before and save at the destination you want to use, e.g. Desktop. Make sure the save credentials box is ticked to save the username.
- Set the local security policy to allow storing passwords
- open policy editor gpedit.msc
- Go to: Computer Configuration → Administrative Templates → Windows Components → Remote Desktop Services → Remote Desktop Connection Client
- Set the policy "Do not allow passwords to be saved" to the value "Disabled"
- Restart the computer
- Add the password to the RDP text file as Encrypted password (Cleartext cannot be used)
- Use Powershell to encrypt the password: ("MySuperSecretPassword!" | ConvertTo-SecureString -AsPlainText -Force) | ConvertFrom-SecureString;
- open the RDP connection file and add the following line at the end of it: password 51:b:<here the output from the powershell command>
- Save the file now
Please test that the connection is now working as expected without the user need to type in a password
Comments
Post a Comment