How to create an RGD file with multiple server Names and IP address QUICKLY?
When you have the list of Server name and IP address, there is an easy way of creating an RDG with the list of those.
The below Script helps in creating an RDG file, but you will end up having the Server name and Display name both as an IP address
Issues with this approach:
- It's not intuitive to read a server by IP(it's impossible to remember individual server IP)
- You will have to manually update the server name one by one for all the servers in the list
So I was creating an RDG file for 35 odd servers and the script helped me to quickly create an RDG file, but I ended up wasting a lot of time in changing the server name individually.
I spent a couple of hours (some more ) modifying the script to accept CSV file and create an RDG file out of it.
But I was not able to completely finish it as there was a lot of variables, Type casting to [XML], Ifs and buts … etc.
There got to be an easy way !!!
Thinking about it, RDG was actually an XML configuration file. A powerful tool we have to edit EML file is ….. Yes ! You got it EXCEL.
Below is the easy way to create an RDG file with the list of given Server name and IP address.
Create a blank RDG file(hopefully by now you have already downloaded RDC Manager, if not download and install it).
Note: You can use any old RDG file if you have
Open RDG file in Excel
Say Yes when you see the prompt since we know it is our file
Select the third option that says
"Use XML Source task pane"
Click on Ok on the next dialog as well
On the right plane click on "displayName" drag and drop it to a column header. Repeat the same thing for "name" as shown in the figure.
We are almost close!!
Paste the name and display name and IP address of the servers to be connected as shown in the Image below.
Now Export this by right clicking on any of the column header("displayName" or "name") > XML > Export
Rename the extension of the exported file from .XML to .RDG and open the file
- If required you can click on the Root or Group and check the name of your liking.
- This process can be used to quickly update any XML. For eg., You have a list of data that you want to update to an XML you can use the above steps.