get password using the Get-RDMSessionPassword

get password using the Get-RDMSessionPassword

avatar
dans
Disabled

Hi,

i am trying to get a session password via powershell via the Get-RDMSessionPassword cmdlet, i am getting back a SecureString object

if i use the ConvertFrom-SecureString cmdlet to get the plain string it returns a long string that looks like an encrypted string

how can i get the plain password string?

Thanks

Dan

All Comments (1)

avatar

Hi,

There is the parameter AsPlainText in the Get-RDMSessionPassword cmdlet to be able to do that.

Ex:

Get-RDMSessionPassword -Session $session -AsPlainText

Best regards,

Olivier Désalliers