I recently started a new job and just like in my previous one I wanted to have all servers consolidated in one place so I can easily RDP on them if needed. I use the free Microsoft tool Remote Desktop Connection Manager (RDCMan). There are better software out there like RoyalTS in which you can configure SSH, Http, Ftp, vnc etc but for now RDCMan is good enough and there are plenty of people using it so hopefully this post can help them. There is “quite a few” servers in the environment so adding them to the console one by one manually is a major no-no given my allergy to repetitive tasks.

The script below will create an RDG file you can use in RDCMan that will contain all the Windows VMs of the vCenter your are connected to. The VMs that are powered off or don’t have VMware tools running won’t be processed as PowerCLI won’t be able to fetch the host name and IP (non Windows VMs are excluded for obvious reasons).

Download RDC Man here : Remote Desktop Connection Manager

Download the module here: RDCMan.psm1

To create a file covering all your VMs:

Connect-VIServer -Server MyVcenter -credential (get-credentials)

Import-Module RDCMan.psm1

New-RDCManFile -RdgFilePath ".\MyRDGFile.rdg" -VM (Get-VM)

Wait for it to finish and double click on the rdg file to open it in RDCMan. You can then configure your credentials for each domain of your environment and add any physical servers you may want to add.

The generated file will have the following structure:

  • File name (root) is the name of the vCenter.
  • One server group per DNS domain (to allow for the storing of credentials).
  • Server name : VM’s first IPv4 (Not everyone has a rock solide cross domain DNS server!)
  • Server display name : host name of the VM’s host name.
  • Server comments : VM name, IPs, cluster, OS, Notes, custom fields.

Like so:



Sometimes you forget to edit RDCMan when added a new VM or changed an IP and it quickly becomes obsolete. With this script you just run it again 2 months down the road and you’ll have a file that is freshly up to date again.

I personally created one file per vCenter and I open them all in RDCMan. It gives me a nicely organized structure.

Note: At the moment it does not update a file so if you run it against and existing rdg file it will overwrite it. You will then need to recreate your creds and your physical servers. I may add the feature in the future but I’d need to do the xml bit properly and I’m not too fussed about it for now…

Note2: If you get an error about an unsupported special character when opening the file please tell me via the contact form so I can update it. a covered a few of them but I’m sure there’ll be others.