Modify DataEntry Powershell RDM cmdLet

Modify DataEntry Powershell RDM cmdLet

avatar

Hello,

How to change the content "Other (Custom)" in "dataEntry" Session with Powershell RDM cmdLet ?


Is it possible to change the "$session.DataEntry.ConnectionTypeInfos.data" Property ? and how ?


best regards,


thibaut Proust (French)

All Comments (4)

avatar

Hi,

It's not possible to do it the current version. We made a fix that will be available in the next RDM version.

Here's a code snippet on how you will be able to do it in the next RDM version.

$session = Get-RDMSession | Where-Object {$_.name -eq "Other" }
$newOtherValue = New-Object -TypeName Devolutions.RemoteDesktopManager.Business.DataEntryOtherValue
$newOtherValue.Name = "NewName"
$newOtherValue.Value = "NewValue"
$otherValues = $session.DataEntry.OtherValues
$otherValues += $newOtherValue
$session.DataEntry.OtherValues = $otherValues
Set-RDMSession -Session $session
Update-RDMUI Best regards,

Olivier Désalliers

avatar

Hi,

We've released a new beta version with the fix in it. Could you try it to see if everything works for you?

Best regards,

Olivier Désalliers

avatar

I'm going to try

thank you

avatar

it works.

Thank you :)