Hi,
I am trying to use a json file to import a bunch of server details. They import fine but I can't seem to get the credentials to import. I have tried everything - username and password fields, setting it to inherit from the parent, setting it to get it from my personal credentials. Here's an example of some of the things I've tried in my import.json file:
{
"Connections": [
{
"ScreenSize": 18,
"Url": "xxx.xxx.xxx.xxx",
"ConnectionType": 1,
"Group": "MyGroup",
"ID": "1",
"Name": "server1",
"OpenEmbedded": true,
"credentials": {
"Username": "Administrator",
"Password": "mypassword123"
},
"Username": "Administrator",
"Password": "mypassword123",
"CredentialsMode": "Link", // I also tried "Linked"
"CredentialID": "creds",
"RDP": {}
}
]
}
Ideally, I'd like to to set all my servers to link to "creds" so I can set the same username and password for all of them. That way when I import 50 servers I don't have to go into each one and set different passwords. I realise this is not very secure but they'll only be up for an hour or two.
Hello,
Thank you for reaching out to us regarding this,
Could you please specify the version of RDM you are currently using?
I'm wondering if there is a specific reason why you'd like to using the json format? Would a .CSV file not work in this case?
We have the following knowledge base article regarding .csv import:
https://docs.devolutions.net/rdm/commands/file/import/generic-csv-wizard/strategies-file-format/
Best regards,
Samuel Dery
I couldn't work out how to do it with a csv file to be honest. However I have found the information I needed here.
https://docs.devolutions.net/powershell/rdm-powershell/xml-information/
I would never have guessed that I needed to use a GUID though, it would seem much more sensible to use a human readable value. It's working though.
Hello,
Thank you for your reply,
No problem, I'm glad to hear its now working for you.
Feel free to let me know if you have further questions,
Best regards,
Samuel Dery