I took this "When SessionOptions.Timeout is longer, its value is used instead." to mean that option wouldn't be used and it would use the 120 secs instead.
Can you confirm this is true as it doesn't appear to be behaving this way?
It does behave that way, but only after connection is established. So it has actually no effect on
Session.Open
.
What is the syntax of the Session.Timeout value if I need to change it from the default 1 minute (it says it is not recommended to change this)
It's
TimeSpan
.
In PowerShell, you can use
New-TimeSpan
:
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/new-timespan