Hi All
Not sure how many people are trying to use PowerShell to load entries into RDM, but I certainly had the need, so I thought I would share the final script that I used on Friday to insert more than 1,600 entries into our RDM SQL DB. The attached script shows a number of techniques that might be of interest to people, including how to create a credential entry, then create another (RDP) entry that uses that credential entry, also how to set RDP Gateway settings, and how to store both plain text and encrypted passwords into a credential entry. I publish this in the hope that it saves someone a few minutes one day.
The main things I couldn't get working where : 1) Setting the Security Group (I tried using both the group name, and also the GUID of group entry - no luck! - I think because the Set-RDM-Property cmdlet converts the input paramter to type String? Not sure...I just gave up and just did a Batch Edit after the records where in RDM instead), 2) Setting the icon (again, I set these using Batch Edit afterwards), and 3) Setting detailed fields inside a DataEntry type entry.
Regards
Des
Not sure how many people are trying to use PowerShell to load entries into RDM, but I certainly had the need, so I thought I would share the final script that I used on Friday to insert more than 1,600 entries into our RDM SQL DB. The attached script shows a number of techniques that might be of interest to people, including how to create a credential entry, then create another (RDP) entry that uses that credential entry, also how to set RDP Gateway settings, and how to store both plain text and encrypted passwords into a credential entry. I publish this in the hope that it saves someone a few minutes one day.
The main things I couldn't get working where : 1) Setting the Security Group (I tried using both the group name, and also the GUID of group entry - no luck! - I think because the Set-RDM-Property cmdlet converts the input paramter to type String? Not sure...I just gave up and just did a Batch Edit after the records where in RDM instead), 2) Setting the icon (again, I set these using Batch Edit afterwards), and 3) Setting detailed fields inside a DataEntry type entry.
Regards
Des