Server additions via script

avatar

I am looking for a way to automate the addition of servers. I have created a script to modify the Connection.db when an IP address changes, but would like to use the same script to add servers to the db. I can get the entry created, and the log, but the new folders/servers are not showing in RDM. Is there a way to automate the creation of new servers, or the update the index to read in new db entries?

All Comments (3)

avatar

Hello,

I noticed your message about automating the addition of servers in RDM by modifying the Connection.db directly. I'd recommend using the PowerShell Module for Remote Desktop Manager (RDM), which is designed specifically for this purpose. Modifying the Connection.db file directly might lead to issues, as RDM may not recognize changes immediately without the proper indexing or caching mechanisms provided through the official API.

Using the PowerShell Module will ensure that all entries are properly registered and visible within RDM, including automatic updates and integrations. If you have not yet tried it, the PowerShell Module offers commands to manage sessions, entries, and security, providing a more stable solution for script-based changes.

For more information, refer to the documentation here: PowerShell Module Documentation

Best regards,

David Hervieux

avatar

When I use that I get the error message

[Error] The operation was canceled.

upon UpdateRDMUI

avatar

Hello,

Is it possible to post a sample of your script?

Best regards,

Jeff Dagenais