I do not know PowerShell good enough. Consider asking on stackoverflow.com. Post a link here if you do.

rvjhon

2014-03-27 16:02

Thanks prikryl for your help,

would do you help me for this script ?

regards

martin

Re: two ask for powershell script

2014-03-27

rvjhon wrote:

Can i use WinSCPnet.dll whitout $sessionOptions.SshHostKeyFingerprint ?

If you do not care about security you can use SessionOptions.GiveUpSecurityAndAcceptAnySshHostKey.

And can i read on a file HostName and password ... ?

Do you mean if you can read hostname and password from a file? WinSCP .NET assembly cannot do this directly, but implementing this in PowerShell should be pretty easy. That's out of scope of the forum though.

rvjhon

two ask for powershell script

2014-03-26 16:03

Hi,

I want use a Powershell script for download file on few serveur (20-30).
Can i use WinSCPnet.dll whitout $sessionOptions.SshHostKeyFingerprint ?
And can i read on a file HostName and password ... ?

I have test a many solution with Get-Content and Foreach-Object.
and now i have no idea for creating this script