
For testing purpose, I’ve commented out the Get-ADComputer command and replace it with a fake list of server (server1 to server100), but you get the idea. If we want to query AD we need the ActiveDirectory module. The benefits of using an XML file as an input template is that we can customize later on or having multiple versions without changing (with reasonable and valid settings for RDMan) our code/script, but just re-run it will give us a different output. At the moment, the latest version of the program is Remote Desktop Connection Manager 2.7. RDCMan is designed to replace the outdated Remote Desktops snap-in. The following step is creating an XML Template. To solve this inconvenience (and to systematize connections to remote desktops) you should use the official utility from Microsoft Remote Desktop Connection Manager (RDCMan). We can filter AD Computer by OU(Organisational Unit), by OperatingSystem, Name, TAG, etc.

Feel free to adapt the script to your needs. Most probably AD is your primary Source of Truth in our company for the windows environment. The content can be stored or imported from a file txt/csv or even AD.

NET Framework.įirst of all, we need to gather a list of servers in our environment/infrastructure. In this article, I’ll show how to generate an RDG file with a little bit of help offered by PowerShell and the. One thing is being tempted, another thing is starting to code without even thinking of the end goal. I now get the error 'Disconnected from SERVER. One of them, for example, is re-invent the wheel, building your own template generator instead of using a parser or a built-in library that manipulates XML. Hi, I have been using Remote Desktop Connection Manager 2.7 for many years. Here you'll see all the 'File' profiles which are saved in the file itself.

(FYI, this will also be the filename of the xml '.rdg' file you're using.) Select 'Properties'. Right-click the top-most entry in the tree above all groups and servers. There are ways that are quick and dirty and in general, you need to avoid. Open the Remote Desktop Connection Manager.
