Forum / Remote Desktop Manager - Bug Report

RDM14.1.3.0 Powershell not working properly

  • Create an Issue
  • Cancel

Hi,

I have to change Session-Properties and want to do that with ps, but it doesn't work for Sub-Connections, only parents work.

i do want to change on sshshell keypadmode="disable" and enable logging


ForEach ($OneConnection in $Connections) { .................................
$OneConnection.Terminal.KeypadMode = "Disable"
$OneConnection.Terminal.MaxScrollbackLines = 20000
$OneConnection.Terminal.EnableLogging = "True"
$OneConnection.Terminal.LogMode = "AllPrintableOutput"
$OneConnection.Terminal.LogPath = "c:\temp\ssh_log\`$DATE_TEXT_ISO`$_`$TIME_TEXT_ISO`$_`$NAME`$.log"
$OneConnection.Terminal.LogOverwriteMode = "Append"
Set-RDMSession $OneConnection

}

... doesnt do anything if sshshell-session is a subconnection.


Best Regards
Markus

======================

Clock5 mths

Hello,

I'm not sure if i get this right, but it seems like you can get to subconnections from PS.
It would make sense, since these are not considered as Sessions themselves.

That said, you can access the subconnections with something like :

$Parent = Get-RDMSession -Name <name of the parent session>
$subSSH = $Parent.SubSessions | where {$_.ConnectionType -eq "SSHShell"}

Thanks for letting us know if this helps!

Best regards,



Alex Belisle

signaturesignature

Clock5 mths

Hi Alexandre,

thx for your tipp, I figured it out.

Problem solved.

Best Regards
Markus

======================

Clock5 mths

Hello,

Thanks for the feedback, glad it's doing what you need it to.

Best regards,



Alex Belisle

signaturesignature

Clock5 mths