I was very happy to find the ‘Existing Connection’ feature for using PuTTY connections ([Putty] Existing Saved Sessions Support - #2 by stefan_koell). I’m having trouble figuring out how to create them in a Dynamic Folder.
I have my Dynamic Folder script successfully creating connections, but they are showing up as ordinary SSH connections instead of the ‘Existing PuTTY Connection’ type. I tried creating a connection by hand and using the RoyalDocument Powershell module to look at it then replicating the ConnectionType property, but it doesn’t seem to have any effect.
Here is my Powershell object creation portion of my script. Each object is converted into JSON at the end of the script.
[pscustomobject]@{
Name = $name
ComputerName = $h
Type = 'TerminalConnection'
ConnectionType = 'putty;Existing Putty Session'
PuttyConnectionName = 'Default%20Settings'
}
I’m hoping that there is something simple I am missing to change the connection from the default type to ‘Existing PuTTY Connection’.
Thanks in advance!