chadbaldwin / chadbaldwin.github.io

The repo that drives my blog chadbaldwin.net
http://chadbaldwin.net
33 stars 36 forks source link

Working with secure FTP in PowerShell #21

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Working with secure FTP in PowerShell | Chad’s Blog

Recently learned a new way to work with secure FTP in PowerShell

https://chadbaldwin.net/2021/11/01/sftp-in-powershell.html

paschott commented 3 years ago

Good overview on getting started. I'm going through this right now for one of the processes we need to automate. The "winscp" module is definitely easier than calling the DLLs.

chadbaldwin commented 3 years ago

@paschott nice! Just an FYI though, like I mentioned in the post, I don't recommend this for a production process. It's a 3rd party built tool, so you're relying on them using a legitimate copy of the WinSCP DLL/EXE, and the module does not appear to be in active development.

But I think it's great for proof of concept / draft work before moving into something more complicated, like C#.

For a production process, if it needed to be in PowerShell, then I would recommend doing it the official way as shown by WinSCP, and that is to import the WinSCP DLL file as a new type, and work with it that way.

johnwmail commented 3 years ago

Nice, thanks for share.