Data Networking Blog
Blog for Admins

PowerShell – Using WinSCP to download files

Standard

A while back I had to write a script to download a bunch of files periodically on a Windows machine. I tried using some native built-in method of doing it but could’t find much useful information. Finally used WinSCP and PowerShell to download files.

This uses SFTP and SCP which is basically over SSH. I am sure you can change the WInSCP protocol to ftp and try different combination. You will require WinSCPnet.dll and WinSCP.exe which you can easily download from WinSCP site. Download the “.Net Assembly/COM Library” and keep the script and the required files in the same folder and update the path in the script.

 

October 13, 2016 PowerShell, Script, Windows Jd
Font Size
Decrease Size Default Size Increase Size
Select Skin
Select Underlay Background
Select Overlay Background
Scheme Switcher Toggle