Deleting entries from vaults
Thanks for the workaround. It makes more entries being deleted, but I still have 5 entries - also shortcuts - left which aren't deleted no matter how often I call the PS script.
I'd love to see this fixed as I refresh a database with MFA set-up manually from time over time and don't like to go through the whole new rdm DB creation process every time including editing the secret keys in phone authenticator apps.
What about Devolutions adding a --delete-shortcuts option for the Remove-RDMSession cmdlet?
Deleting entries from vaults
@Richard Boisvert
Here's a video how to reproduce the bug: https://www.youtube.com/watch?v=AvClcGr64O0
Deleting entries from vaults
Tried your PS script on Remote Desktop Manager Enterprise 64-Bit Version 2020.3.28.0 and it didn't work. Debugging the lines, I've found $vaults is empty, therefore it's not deleting anything.
I've modified like this and it successfully deleted entries from my local RDM database. I'm using the default local database here (without a central server DBMS).
I still need help because it left 55 entries in my local database instead of deleting everything from it. I noticed all 55 entries were links to other entries. How can I auto-accept deleting links and everything pointing to those entries so I really get everything deleted?
Thanks for your answer.
Here's my script:
$DS_NAME="vm-rsat-rdm"
if (!(Get-module RemoteDesktopManager.PowerShellModule)) {
Import-Module "${env:ProgramFiles(x86)}\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShellModule.psd1"
}
Get-RDMDataSource -Name $DS_NAME | Set-RDMCurrentDataSource
Update-RDMUI
Get-RDMSession | Remove-RDMSession -Force
Update-RDMUI