Users

All Posts (2)

avatar

yannickhein

Retrieve secured command parameter as plain text

avatar
avatar
avatar

Hi Maxime,

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

Best regards,

Yannick

Retrieve secured command parameter as plain text

avatar
avatar
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?

1 - 2 of 2 items