Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell Script to Create Mailbox Folders Help

$
0
0

All,

Please could you assist with the below Powershell task. Basically I have a list of 500 new mailboxes on Exchange and need to create a series of subfolders under each mailbox. The below command set creates the folders on a single mailbox but what I want to be able to do is add all of the mailboxes to either a text document or CSV file and then run a script to create the sub folders on each mailbox in the list.

Can anyone please assist with the required script?

new-mailboxfolder -parent TestMailbox -name "New Orders"

new-mailboxfolder -parent TestMailbox -name "Events"

new-mailboxfolder -parent TestMailbox -name "Processed Orders"

new-mailboxfolder -parent TestMailbox -name "Customer Services"

new-mailboxfolder -parent TestMailbox -name "Complete"

new-mailboxfolder -parent TestMailbox:\Orders -name "Tasks"

new-mailboxfolder -parent TestMailbox:\Orders -name "Completed Tasks"

new-mailboxfolder -parent TestMailbox:\Orders -name "Order Acknowledgements"

Many thanks

James


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>