Exchange 2007 – Create Multiple Mailboxes using Powershell

Exchange 2013 1

We were recently setting up a test lab with an old version of Exchange 2007 to replicate a customers environment and we had created the required 250 users in Active Directory using some scripts but we also had to then create the mailboxes for these accounts.

Not wanting to sit there manually creating all these mailboxes, we used a quick Powershell command that had it done in 30 seconds.



All you need to do is to run the following command in your Exchange Management Shell:

Where:

  • “LAB/Users” – The OU you want to enable the mailboxes on
  • “LABMBXMBX1” – your Exchange database where you want to create the mailboxes on

You can also add further parts to your command to scale down the search for users based on Company or Department etc. To this, just add it to the “Where-Object” part – so an example:

Just change the Sales and Lab Company to whatever you require.

Once you have run this command you should check in your Exchange Management Console and you should then see all the mailboxes that have been created for you.

COMMENTS

If you have any feedback or queries on this guide, please leave us a message below and we will get back to you when we can.



Leave us a message...