function to add "Start the following program on connection" (all fields)

function to add "Start the following program on connection" (all fields)

avatar

Hello Devolutions Team,

I hope your great support can once again help me out.
I need to add a URL to the "Start the following program on connection" feature and fill all possible hooks and fields with values.

Could you tell me the corresponding PS functions to call?

Thanks in advance

BR
Steffen

All Comments (2)

avatar

Hello,

The PS cmdlet for set or modify any properties of an entry is Set-RDMSessionProperty.

For your needs :
Set-RDMSessionProperty -ID $session.ID -Property "AlternateShell" -Value "OtherShell.exe"
Set-RDMSessionProperty -ID $session.ID -Property "ShellWorkingDirectory" -Value "YourURL"
Best regards,

Érica Poirier

avatar

Thanks!

Worlds best Support!