Open utterances-bot opened 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.
@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.
Nice, thanks for share.
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