Save Credentials for all Servers’ RDP Connections

Save Credentials for all Servers’ RDP Connections

It was a big joy when I found a solution how to save my current windows credentials for all servers' rdp connections. We have more than 50 servers and it's annoying to enter my credentials on every rdp connection to server. But can you imagine how it is hard for environment with 200 and even 1000 connections.

I've found a small utility in Windows 7 - my present host OS - cmdkey.exe which can add, change or delete credentials for many type of connections. For my purposes I've used TERMSRV.

If you are using Windows XP you can just copy this utility from Windows Server 2003 but not from Windows 7 or Windows Server 2008.

After changing my windows credential it is possible to run this script for saving your current windows credentials for rdp connections.

Get-QADComputer -OSName *2003 | foreach `
{
if(Test-Connection $_.name -quiet)
{
$pc=$_.name
$pc
cmdkey /generic:TERMRV/$pc /user:domain\user /pass:password
}
}

P.S. I am using:

For more information, see http://proproit.com/activedirectory/save-credentials-for-all-servers-rdp-connections/.

Leave a Comment
  • Please add 6 and 6 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Maheshkumar S Tiwari edited Revision 3. Comment: Added tags

  • Eric Battalio MSFT edited Revision 2. Comment: added lead in text to external link

Page 1 of 1 (2 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Eric Battalio MSFT edited Revision 2. Comment: added lead in text to external link

  • Maheshkumar S Tiwari edited Revision 3. Comment: Added tags

Page 1 of 1 (2 items)