Trying to set RDM session passwords

Implemented

Trying to set RDM session passwords

avatar

RDM version: 2022.3.24.0 64-bit
I'm trying to set my credentials, and I'm trying this, and it's just not working.

Get-RDMSession -GroupName _credentials |Where-Object name -match '^thisname' | ForEach-Object { Set-RDMSessionPassword -Password $MyPwd -Session $_  -Verbose }
Update-RDMUI


The $MyPwd is a secure-string already and thisname is the account I'm trying to update.

The first two parts of the pipeline work exactly as expected, and the sessions are retrieved.

I tried it with RDM launched and not launched, and neither scenario worked.

Thank you,
David F.

All Comments (3)

avatar

Hi David

Set-RDMSessionPassword won't commit the change to your data source automatically when supplied a session object directly. This is to allow batch edit of a session's property.
Using the entry's ID, however, will save.

Get-RDMSession -GroupName _credentials |Where-Object name -match '^thisname' | ForEach-Object { Set-RDMSessionPassword -Password $MyPwd -ID $_.ID  -Verbose }
Update-RDMUI


Alternatively, you can call Set-RDMSession $_ after Set-RDMSessionPassword.

Let me know if this helps.
Regards

Jonathan Lafontaine

avatar

I didn't see anything in the help that indicated that was the case, but I can do that.

Thank you very much :-)
David F.

avatar

Thank you for the feedback, I'll open a ticket to clarifying this point in the help.

Jonathan Lafontaine