Solved

Unattended ftp download of multiple unknown files with Powershell

Posted on 2011-02-11
3
2,384 Views
Last Modified: 2012-05-11
Back in the old days, I could use ftp mget * to download all files in a directory.  I'd like to be able to do the same thing in powershell, but after googling some, I can't find a very straightforward answer.

What I am trying to do: I am putting together an unattended Powershell script that runs on a schedule to download any new files it might find in a folder on an ftp site.
0
Comment
Question by:KTN-IT
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
jwarnken earned 500 total points
ID: 34880392
The .net framework has some methods you can use. Unfortunately because there is not a powershell command you will have to read the msdn docs to find what will work for you.

Check out these links
http://powershell.com/cs/media/p/804.aspx 
http://msdn.microsoft.com/en-us/library/system.net.webrequestmethods.ftp.aspx
0
 
LVL 5

Assisted Solution

by:KTN-IT
KTN-IT earned 0 total points
ID: 34887591
Thanks for the links.  I also found these links helpful when you don't know in advance the exact name of the files you will be downloading:

http://poshcode.org/1689
http://poshcode.org/1692
0
 
LVL 5

Author Closing Comment

by:KTN-IT
ID: 34932064
It's important to be able to enumerate new files on an ftp folder directory.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question