Change Keepass Database Path with Batch Edit

Change Keepass Database Path with Batch Edit

avatar

Hello,

first - sorry for my english!:(
We use RDM with Keepass and embedded Credentials.
Now we must change the Path to the Keepass Database (the Path was set manualy).
Is it possible to change the Path with Batch Edit?

Thank you !

Best greetings from Germany

All Comments (9)

avatar

Hello,

You can do this using a custom powershell batch action. You can do the following:
1. Select your KeePass entries you want to change
2. Right click > Edit > batch edit > batch actions
3. Select "Custom powershell command" under the "general" category
4. Run the following script, which will change the database path to whatever you want:
$connection.Credentials.KeepassDatabase = "C:\TestDatabase.kdbx"
$RDM.Save();Regards,

Hubert Mireault

avatar

PERFECT !!!!!

THANK YOU VERY MUCH !!!!

avatar

Hello,

i have a problem. We have change the Path to the new Keepass Database, but some of the RDP Connections RDM ask´s Keepass for a old Database that can not be find. In the Connection Profile i can´t find any entry for this old Database?

best regards,

Martin

avatar

Hello,

Do you get any error? Can you take a screenshot so we can understand better what happens? Thank you.

Regards,

Hubert Mireault

avatar

I received your video, thank you. I think the issue is because the RDP session itself has a dynamic credential linked. Unfortunately you will probably have to set it again manually, because the ID is specific to the Keepass database, and you changed database from what I understand.
http://help.remotedesktopmanager.com/index.html?credentials_dynamiccredentiallinking.htm

Regards,

Hubert Mireault

avatar

where i can find "dynamic credential linked" ? The Keepass Database ist the same, but the Path we have changed.
$connection.Credentials.KeepassDatabase = "C:\TestDatabase.kdbx"
$RDM.Save();
When i delete the RDP Session and create a new one, then it works.

avatar

Ah I think I misunderstood what was shown in the video. You are using embedded credentials for that particular RDP session.

Could you execute the Batch Action on that RDP entry too and see if it works? If it does, you could execute the batch action on the other RDP sessions that are still set to the old database path.

Regards,

Hubert Mireault

avatar

hi @Hubert Mireault,
How do you modify the "Set database path manualy" (It's misspelled in the GUI)

Edit: "using PowerShell to batch edit"

avatar

Hello,

You can use the following command in the Custom Powershell batch action:
$connection.Credentials.KeepassDatabase = "C:\Path\To\Your\Database.kdbx"
$RDM.Save();

For the typo in the resource, this will be fixed in the next version of RDM, thank you for catching that :)

Regards,

Hubert Mireault