Re: powershell 5.0.10240.16384 error - unable to find type [WinSCP.Protocol]
It's
Protocol
, not Protcol
.
Protocol
, not Protcol
.
# Load WinSCP .NET assembly
Add-Type -Path "C:\Program Files (x86)\WinSCP\WinSCPnet.dll"
# Setup session options
$sessionOptions = New-Object WinSCP.SessionOptions
$sessionOptions.Protocol = [WinSCP.Protcol]::Sftp