Creating public folders in Exchange 2010

Hello,
We are preparing to migrate to Exchange server 2010, and I need to create a relatively large number of public folders from scratch.  Is there any way to use Exchange PowerShell to "automate" or string together a number of commands to create multiple public folders in one script?  I have tried something similar to the following on a test server, but it was not successful:

New-PublicFolder -Name "test folder 1" - Path "\Projects\Company 1\Project 1" |
New-PublicFolder -Name "test folder 2" - Path "\Projects\Company 1\Project 1" |
New-PublicFolder -Name "test folder 3" - Path "\Projects\Company 1\Project 1" |

Is it possible to do something like this or do each of the folders have to be created individually?
Thanks
rdillionSystems AdministratorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KillerbeCommented:
That would be something like this:
Import-csv -path %csvfilepath% | ForEach-Object {New-publicFolder -name $_.name}
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rdillionSystems AdministratorAuthor Commented:
Thanks very much Killerbe, I'll give it a try and post results.
0
rdillionSystems AdministratorAuthor Commented:
Killerbe,
That worked perfectly, thanks very much!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.