Retrieve secured command parameter as plain text

Retrieve secured command parameter as plain text

avatar

We have quite a few automatically generated "CommandLine" type entries in RDM which I would like to access via PowerShell. The entries have 4 default parameters which are all of type "secured", so I get this result when accessing it:

PS C:\Git> Get-RDMVersion
2025.1.38.0
PS C:\Git> Import-Module Devolutions.PowerShell
>> 
>> $ds = Get-RDMDatasource -Name $dataSourceName
>> Set-RDMCurrentDataSource -Datasource $ds
>> 
>> $v = Get-RDMVault -Name $rdmVault
>> Set-RDMCurrentVault -Repository $v
>> 
>> $entry = Get-RDMEntry -Group $rdmPath -name $rdmEntry
PS C:\Git> $entry.Cmd.Param1Default
PS C:\Git> $entry.Cmd.SafeParam1Default
/kmQ.....
PS C:\Git>

The parameters are all shown as "SafeParam1Default" (..4), but the "ParamxDefault" is empty (strangely enough, I changed one entry which is just an IP to type "Text" and it is still shown only as "Safe..." parameter - this might be a bug).

I would like to access the parameters as plain text, but did not manage to get "Get-RDMEntryPassword" working here. How get I get this done?

avatar

Recommended Answer

Hello,

Sorry for the delay.

Starting with version 2026.2.2 of the Devolutions.PowerShell module, you can access these values in two ways:

  • Directly on the PSConnection object: under the Cmd property, the Parameter{n}DefaultValue fields will return the plaintext value if you have the Edit right on the entry — and, when the parameter's type is Secured, the ViewSensitiveInformation right as well.
  • Via the new RDMEntryParameter cmdlets: a dedicated set of cmdlets (Get-, Add-, Set-, Remove-RDMEntryParameter) for managing an entry's parameters, so you don't need to know which slot a given parameter is stored in.


Let us know if you need anything else.

Best regards,
Maxime

All Comments (3)

avatar

Hello,

The parameters are always stored encrypted regardless of their type — the type only affects how the value is displayed in RDM. This is expected behavior.

That said, the Devolutions.PowerShell module does not currently expose those sensitive values by design, so there is no cmdlet available to retrieve them at the moment. I have opened a ticket to have this addressed in a future release.

Do not hesitate to reach out if you have any further questions.

Best regards,
Maxime

avatar

Hello,

Sorry for the delay.

Starting with version 2026.2.2 of the Devolutions.PowerShell module, you can access these values in two ways:

  • Directly on the PSConnection object: under the Cmd property, the Parameter{n}DefaultValue fields will return the plaintext value if you have the Edit right on the entry — and, when the parameter's type is Secured, the ViewSensitiveInformation right as well.
  • Via the new RDMEntryParameter cmdlets: a dedicated set of cmdlets (Get-, Add-, Set-, Remove-RDMEntryParameter) for managing an entry's parameters, so you don't need to know which slot a given parameter is stored in.


Let us know if you need anything else.

Best regards,
Maxime

avatar

Hi Maxime,
thank you for adding the features, we will have a look at it!

Best regards,
Yannick