I have following code to send files to a FTP server.
function FtpUploader( [string]$uri, [string]$localeFile, [string]$user = \"ftp\", [string]$passw
I solved it by using the following:
$ftp.KeepAlive = $false