$client = New-Object System.Net.WebClient $client.Credentials = New-Object System.Net.NetworkCredential("cod1.holaformacion.com","Atrium12022") $client.UploadFile("ftp://ftp.holaformacion.com/ALUMNOS/Antonio/hello.txt","c:\Users\IEUser\Documents\PSSrcipts\hello.txt")