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?

Clock3 mths

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

Happy Holiday Season!
Although our various support queues will be monitored during the coming holiday season, Devolutions' offices will be closed from December 24th, 2019, to January 1, 2020, inclusively.

signaturesignature

Clock3 mths

That solved the problem, thank you very much

Clock2 mths

Hello,

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

Best regards,



Érica Poirier

Happy Holiday Season!
Although our various support queues will be monitored during the coming holiday season, Devolutions' offices will be closed from December 24th, 2019, to January 1, 2020, inclusively.

signaturesignature

Clock2 mths