Powershell - how to set "screen sizing mode"

Powershell - how to set "screen sizing mode"

avatar

Good Morning,
i need to configure a lot of sessions and I'm using Powershell to do it.

Each time it's very difficult to find the right property to set a specific parameter.
For example it took me a long time to discover the following properties :

$CurrentSession.Terminal.ExpectedUserPrompt = $RDMdevice.UsernameString
$CurrentSession.Terminal.ExpectedPasswordPrompt = $RDMdevice.PasswordString
$CurrentSession.Terminal.AfterConnectMacros= $RDMdevice.CommandsCommaSeparated
$CurrentSession.web.UsernameControlID=$RDMdevice.UsernameString
$CurrentSession.web.PasswordControlID=$RDMdevice.PasswordString
$CurrentSession.web.SubmitControlID=$RDMdevice.LoginButtonID
$CurrentSession.DataEntry.WebBrowserApplication=$RDMdevice.Browser

There is a way to discover easily the right property for a specific parameter ?

For example I found the command for ScreenSize but i'm not be able to find the right property to set "Screen Sizing mode" for a RDP session. Could you help me ?

Thanks

All Comments (2)

avatar

Hello,

I suggest to create a reference session and check the configured settings with Clipboard => Copy
More informations about you'll find here

An example for the Screen Sizing mode would be

$connection.RDP.ScreenSizingMode="AutoScale"


Regards,
Min

avatar


Perfect. It works.

Thanks for the quick response