Powershel syncing data

Powershel syncing data

avatar

Hello everyone,

please could you help me finding out why my powershell scripts are not working?
im running Devolutions.PowerShell module 2023.3.8 and we have DPS server data source.

I have a script that should change password on session this way:

Import-Module Devolutions.PowerShell
Get-RDMVault
# now powershell asks me if I want to use offline mode (im answering no, I want to be online)
Set-RDMCurrentVault -ID $vault
#setting requiered vault to edit session there.

Then I save password as secure string into
$pass2 = xxxx

then I want to set this password on my entry
Set-RDMSessionPassword -ID $SessionID -Password $pass2

I can see that this command was successfull, because running
Get-RDMSessionPassword -ID $SessionID -AsPlainText
outputs the new password that was saved in $pass2

however then im running into issue that this new password is not synced to our password server. so lets say I go into my RDM client refresh it, and find this session, it still has old password.

im not really sure how shoud I force sync to our dps server. I was thinking
Update-RDMUI, but that throws error
[Error] The operation was canceled.
[Error] The operation was canceled.

Get-RDMOnline / Get-RDMOffline does not do the trick also.

I think in earlier versions of your module this was not an issue, getting to online using get-rdmonline worked, and in powershell I was asked if I want to accept and apply changes from offline mode.

Am I doing something wrong? It was working before.

thanks
Michal

All Comments (1)

avatar

Hello,

The Set-RDMSessionPassword will only set the password in the object in memory. To save it in the DVLS data source, please use the Set-RDMSession after. And no need to use the Update-RDMUI cmdlet.

Let us know if that works.

Best regards,

Érica Poirier