Hey there
We have an SQL Database with credentials (Just User/Password or User/Password/Website URL) which we want to import into a credential or website entry in the Devolutions Server.
Is this possible and how could this be done?
Thanks a lot.
Patrick
Hello,
Thank you for contact us on that matter.
It is possible to create a PowerShell script that will manage 2 different data sources, one connected to SQL and the other one connected to DVLS. Then your script can fetch entries from a customer ID using Get-RDMSession cmdlet and export the entries in a CSV file. Then, the script switch to the DVLS data source and import the entries one by one from the CSV file. It should verify if the entry exists to know if it's a new entry or if the script need to update an existing entry.
Here is a sample of the Get-RDMSession cmdlet to filter the entries for a specific customer.
$session = Get-RDMSession | where {$_.Name.Contains("1035")}
Let us know if you have further questions about this.
Best regards,
Érica Poirier
Hello Erica
Thank you very much. Could you post an example power she'll script for the import to the DVLS Server from the csv? That would be very helpful.
Thanks a lot.
Patrick
Hello Patrick,
Thank you for your feedback.
You should find what you are looking for in the following script.
https://github.com/Devolutions/RDMSamples-ps/blob/main/module/import/DevolutionsCSVImport.ps1
Let me know if you have further questions.
Best regards,
Érica Poirier