Run power shell on machine behind proxy to download FTP files [duplicate]

Solution 1:

There's no other FTP implementation in .NET framework than FtpWebRequest. And FtpWebRequest itself is deprecated and won't be improved. You have to use a 3rd party FTP client library.

See:

  • https://docs.microsoft.com/en-us/dotnet/api/system.net.ftpwebrequest#remarks and
  • https://github.com/dotnet/platform-compat/blob/master/docs/DE0003.md (which points to Free FTP Library)

In general, you can use FluentFTP or my WinSCP .NET assembly.

Though neither supports NTLM authentication (a requirement you have added later). I'm not aware of any other free widely used .NET FTP library.