Forum / Remote Desktop Manager - PowerShell Repository

Copy from one Vault to another

  • Create an Issue
  • Cancel


Hi
I am trying to copy a folder from one Vault to a different Vault using powershell and Export-RDMSession and Import-RDMSession.

When I import the folder to a repository it disappears from the first one, I suspect it moves it.
Is there a setting to prevent it from moving it?

Clock10 days

Hello,

Because the Export-RDMSession cannot modify the GUIDs of the entries, when importing the session, the Import-RDMSession will move the entries in the destination vault. You can use instead the Copy-RDMSession cmdlet for that operation.

$sessions = Get-RDMSession
$newcopy = Copy-RDMSession -PSConnection $sessions
$vault = Get-RDMRepository -Name MyDestinationVault
Set-RDMCurrentRepository $vault
Set-RDMSession $newcopy
Update-RDMUI

Best regards,



Érica Poirier

signaturesignature

Clock10 days

That solved the problem, thank you very much

Clock9 days

Hello,

Thank you for your feedback and glad that it's working as expected.

Best regards,



Érica Poirier

signaturesignature

Clock9 days