Auto generating Remote Desktop Connection Manager files (.rdg) with XML

Below is a stripped down version of what I came up with to auto generate Remote Desktop Connection Manager files. Depending on how you do your name resolution will determine what you use for $serverElement.properties.name (hint, uncomment DNS or NetBIOS). This has been tested with RDCMan v2.7 build 1406.0 and is based off Stuart's work listed below. I added a 'comment' element and a lot of #comments so others can more easily customize it for their needs. The version I use iterates through several different forests and creates individual .rdg files for each forest with groups within for each of the child domains. Great start Stuart, thanks!