4
votes

With a 210MB file, using a script like below takes a little over 10 minutes with Powershell:

$webclient = New-Object System.Net.WebClient
$uri1 = New-Object System.Uri($Ftp2)
$webclient.UploadFile($uri1, $File2)

However, using FileZilla, it takes under 2 minutes for the same file.

Is FileZilla optimized? Can I improve the Powershell call somehow?

I prefer to use PS as I have scripts that upload multi-GB files...

1
Have you tired ensuring that it's not (trying) to use a proxy? You can use $webclient.proxy = null to disable proxy usage. Also, have you tried using the .Net FTPWebRequest class instead?techie007
haven't done either...will try both...thxeych

1 Answers

2
votes

Setting the proxy = null didn't change the timing, however, using FTPWebRequest did the trick.