Forum

Posts by yann01 (yann01)

yann01
yann01
Posts: 4

Dear Erica,

Thanks a lot for your support !
It works now very well.

So here is the last version of our script :

Import-Module 'C:\Program Files (x86)\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShellModule.psd1'
# Adapt the data source name
$ds = Get-RDMDataSource -Name "%YourDatabase-RDM%"
Set-RDMCurrentDataSource $ds
# Adapt the password
$passwd = ConvertTo-SecureString -AsPlainText -Force '%yourpassword%'
$repos = Get-RDMRepository
foreach ($repo in $repos)
{
Set-RDMCurrentRepository $repo
Update-RDMUI
$sessions = Get-RDMSession | where {$_.ConnectionType -eq "Credential"}
$reponame = $repo.name
# Adapt the destination path for the file(s)
Export-RDMSession -Path "C:\temp\Sessions_$reponame.zip" -Sessions $sessions -CSV -Password $passwd
}


Again, thanks a lot !

3 mths [RESOLVED] Export all credentials entries of all repositories
yann01
yann01
Posts: 4

Hi Ercia,

Thanks again for your support.
Sounds OK for me but I'm a little bit surprised by the fact we can't export this kind of data in a CSV/HTML/XLS file with usernames and passwords, because it's possible if we do that manually in the RDM interface with "Export Special" option (but we have to do that on all repositories ...).

The final goal here was to have an export of all RDM credentials entries in an independent file we can open without a specific software, as a backup.
This file will be secure by different other ways so the password protection is not important for us here.
Is there any solution for that ?

4 mths [RESOLVED] Export all credentials entries of all repositories
yann01
yann01
Posts: 4

Hi,

Thank you for your answer.
It works well but only if credential entries are directly under the folder "Credentials".

We are using exclusively the credential entry "Username / Password" in RDM.
So is it possible to set the condition not on the folder name but on the RDM type object "Username/Password" ?

I mean modify the line
$sessions = Get-RDMSession | where {$_.Group -eq "Credentials"}
To something like
$sessions = Get-RDMSession | where {$_.Type -eq Username/Passwords}


Also, is it possible to export the same data in csv or html file ?
Command Export-RDMSession -Path "C:\temp\Sessions_$reponame.zip" -Sessions $sessions -IncludeCredentials -CSV -Password $passwd
} seems doesn't work here ...
But maybe we forget something.

Thank you in advance for your support.

4 mths [RESOLVED] Export all credentials entries of all repositories
yann01
yann01
Posts: 4

Dear,

We are using a lot of different repositories in RDM Enterprise.
We have in each repository a folder "Credentials".

Is there a way to export/backup all entries of this folder, from all repositories ?

Actually, we see that the option is available with a right click on the folder directly and select "export ..." but it will take us too much time to do that for all our repositories.

Thank you in advance for your support.

4 mths [RESOLVED] Export all credentials entries of all repositories