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?
 
KillerbeCommented:
That would be something like this:
Import-csv -path %csvfilepath% | ForEach-Object {New-publicFolder -name $_.name}
0
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.