Here’s a potential blog post based on the provided information:
—
streamlining Remote Desktop Connection Manager with PowerShell
As a fan of Microsoft’s Remote Desktop Connection Manager (RDCMan), I’ve been looking for ways to make it even more efficient and effective. One feature that’s been missing from the tool is the ability to import server objects directly from Active Directory, rather than manually adding or removing servers as your infrastructure changes over time.
To address this gap, I’ve created a simple PowerShell script that queries Active Directory for server objects and dumps their names into a text file that can be imported into RDCMan. This solution is far from automated, but it’s a quick and easy way to get your current servers into RDCMan without having to create each entry manually.
Here’s how to use the script:
1. Replace the path in line 11 of the script with the desired output file path (e.g., C:\servers).
2. Run the script, which will create a text file called servers-{current-date}.txt in the specified path.
3. Import the text file into RDCMan by going to the Edit menu and selecting Import Servers. This brings up the Import Servers dialog box, where you can browse to the file that the PowerShell script created. Click on the Import button, and all your servers should now be listed in RDCMan.
4. The next time you need to update your server list, simply delete the existing servers, re-run the script, and import the updated text file into RDCMan.
While this solution is far from perfect, it’s a useful work-around that can save you time and effort when managing your RDP connections. For a more elaborate and fully automated solution, check out Jan Egil Ring’s “Dynamic Remote Desktop Connection Manager connection list” solution, which is the way it should be done!
If you have any questions or feedback on this script or RDCMan in general, feel free to leave a comment below. Happy remote desktop management!