Re: PowerShell Script Error – "SessionOptions.Protocol is Protocol.Sftp or Protocol.Scp, but SessionOpti
You have to set
Session.SessionLogPath
before opening the connection – before calling Session.Open
. You current code throws an exception – haven't you noticed? If you haven't you probably have some bad error reporting in place.