Posted: 2015-11-10 16:22
I'm just starting with WinSCP and Powershell. I've been using WinSCP in SSIS with much success - Thank you Martin! I can't seem to get started with Powershell. I'm on Windows 10 and Powershell 5 using the Windows Powershell ISE as an Administrator. I'm stuck using WinSCP 5.5.6 right now.
My test errors out right at the beginning.
# 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
Error: Unable to find type [WinSCP.Protcol].
Thanks for your help and pointing me in the right direction.
Location: Prague, Czechia
You can post new topics in this forum
And it's free!