For PS 7.2.1, the same call on Windows and Linux returned different results,
New-PSSessionOption -OperationTimeout 360000
On Windows it returned a list of params and values, with the OperationTimeout set correctly, 00:06:00.
But on Linux it failed, showing the following error:
New-PSSessionOption: A parameter cannot be found that matches parameter name 'OperationTimeout'.
What's wrong?
On Linux if I issued just "New-PSSessionOption", w/o any param, it'd return a list of params with default values, including ":OperationTimeout: 00:03:00". So, it's there in the implementation, but why can't I set it?
BTW, I was trying to copy many files, small and big in sizes, from Linux to Windows. But after the Copy-Item ran for a few minutes, it started failing with "Internal error parsing Wsman fault message...". That's why I wanted to set this timeout longer.