PowerShell script for launch Putty

Hi everyone!
I have question for you.
I made a script in PowerShell to connect to my Ubuntu Server with Putty.

$Path = “C:\Program Files\PuTTY\putty.exe”

$IP = “myIP”
$UserName = “myUserName”
$Password = “myPassword”
$PortNumber = “22”

$Parameters = “-ssh $IP -l $UserName -pw $Password -P $PortNumber”
Start-Process -FilePath $Path -ArgumentList $Parameters

The connection is ok, but I also want when the connection si established to load a specific configuration of window Putty, size, colors, font, …
Do you know how to do it ?

dragu_stelian,
Welcome to the forum. :wave:t3:

If I got it right - why don’t you save a session with the desired settings and load it later on with the command line option -load?

https://the.earth.li/~sgtatham/putty/0.78/htmldoc/Chapter3.html#using-cmdline