tag:blogger.com,1999:blog-920065377104456952.post1412696771899059226..comments2016-10-18T07:27:24.956-04:00Comments on .Net, Security, and Powershell goodies: FTP in PowershellJoe Langleyhttp://www.blogger.com/profile/11553619789895911588noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-920065377104456952.post-90156951013325973852009-06-16T15:43:35.566-04:002009-06-16T15:43:35.566-04:00If I have to do a SFTP then how do I give the port...If I have to do a SFTP then how do I give the port number?Unknownhttps://www.blogger.com/profile/07748244462498014869noreply@blogger.comtag:blogger.com,1999:blog-920065377104456952.post-3386608516020523372009-06-16T15:21:00.460-04:002009-06-16T15:21:00.460-04:00Typo above. try this:
$File = "D:\Dev\somefi...Typo above. try this:<br /><br />$File = "D:\Dev\somefilename.zip"<br />$ftp = "ftp://username:password@example.com/pub/incoming/somefilename.zip"<br /><br />$webclient = New-Object System.Net.WebClient<br />$uri = New-Object System.Uri($ftp)<br /><br />$webclient.UploadFile($uri, $File)Joe Langleyhttps://www.blogger.com/profile/11553619789895911588noreply@blogger.comtag:blogger.com,1999:blog-920065377104456952.post-57055122799206841072009-06-16T15:10:29.604-04:002009-06-16T15:10:29.604-04:00I was trying the above code, I do not quite unders...I was trying the above code, I do not quite understand what 3rd and 4th lines do?Unknownhttps://www.blogger.com/profile/07748244462498014869noreply@blogger.comtag:blogger.com,1999:blog-920065377104456952.post-15463837616160529092009-06-16T14:59:32.947-04:002009-06-16T14:59:32.947-04:00Yes please.Yes please.Unknownhttps://www.blogger.com/profile/07748244462498014869noreply@blogger.comtag:blogger.com,1999:blog-920065377104456952.post-47513848039314892992009-06-16T13:36:50.606-04:002009-06-16T13:36:50.606-04:00This comment has been removed by the author.Joe Langleyhttps://www.blogger.com/profile/11553619789895911588noreply@blogger.comtag:blogger.com,1999:blog-920065377104456952.post-75150433753610251282009-06-16T13:07:11.726-04:002009-06-16T13:07:11.726-04:00I need to post a file..How do I do that.I am new t...I need to post a file..How do I do that.I am new to PS.Unknownhttps://www.blogger.com/profile/07748244462498014869noreply@blogger.comtag:blogger.com,1999:blog-920065377104456952.post-28385154232769436462009-06-16T12:12:05.355-04:002009-06-16T12:12:05.355-04:00Here is an example broken out to a nice function: ...Here is an example broken out to a nice function: http://powershell.com/cs/media/p/804.aspxJoe Langleyhttps://www.blogger.com/profile/11553619789895911588noreply@blogger.comtag:blogger.com,1999:blog-920065377104456952.post-67202593731261957942009-06-16T11:18:34.014-04:002009-06-16T11:18:34.014-04:00How do we give user name and passwordHow do we give user name and passwordUnknownhttps://www.blogger.com/profile/07748244462498014869noreply@blogger.com