How to setup remote desktop connection for all users?

0

We are having some remote desktop connections for all users. Our .rdp files are configured and copied to all workstations, but on each workstation, when different user logs in and run that .rdp file, it always requires to enter password at the first time to use it. Is there a way that .rdp file can store the passoword for all users?

where is the configuration files located for .rdp files? there must be file that holding all .rdp file settings right?

Root Loop

Posted 2014-09-05T12:43:35.180

Reputation: 785

The credentials are stored in the Windows Credential Manager, not in the RDP shortcut. – Ƭᴇcʜιᴇ007 – 2014-09-05T13:04:27.550

I took a look of Windows Credential Manager, just wondering that if it supports %COMPUTERNAME% variable? – Root Loop – 2014-09-05T13:34:16.183

@Ƭᴇcʜιᴇ007 @scott chamberlain @PrinceYann I just made it working. create a batch file, put it into startup folder. cmdkey /add:TERMSRV/server01 /user:%computername% /pass:password . we are using pc name as terminal server login name, so i user %computername% here. now no matter who logs into workstations, they all get same credentials for rdp. thanks for the hints! – Root Loop – 2014-09-05T14:36:33.620

Answers

1

You cannot have the password pre saved in the rdp file and have it distributable. The rdp file format does support saving passwords as a undocumented feature (so it could be removed in a future version), however the password is encrypted with the "machine key" of the windows install so only the machine that encrypted the password is capable of decrypting it.

Scott Chamberlain

Posted 2014-09-05T12:43:35.180

Reputation: 28 923

0

To configure the credentials in each PC, go to the control panel on the PC that has the credentials working for all users, then procede to user accounts, credential manager, windows credentials and make a backup of the credentials. After that, import that backup in each other PC.

The names may differ, I'm using the portuguese version.

Anderson Nascimento Nunes

Posted 2014-09-05T12:43:35.180

Reputation: 506

The thing is we dont control who is working on which PC, so there is no PC has the credentials working for all users. The thing i want to setup is like a default setting, no matter who is login to PC, they all will using the same credentails for that .rdp connection. – Root Loop – 2014-09-05T13:30:15.330

just wondering that if credential manager supports %COMPUTERNAME% variable? – Root Loop – 2014-09-05T13:39:01.373