Exchange 2010 - Powershell to create mailbox for all AD users
All, We are going through a migration to Exchange 2010 and am looking for a powershell script that would create a mailbox for every user who belonged to a specific OU. I've found some which ask for the username manually and will set the rest of the attributes, but is there something that will read the user objects from an OU and create the mailbox with some settable attributes? Thanks!
April 19th, 2010 8:02pm

Lots out there. You can filter on OU if desired. Modify the scripts as required. Some samples: http://www.exchangepedia.com/blog/2006/11/exchange-server-2007-bulk-creation-of.html Bulk creation of mailboxes using Exchange Management Shell http://www.exchangeninjas.com/PSSCategories PowerShell Scripts
Free Windows Admin Tool Kit Click here and download it now
April 19th, 2010 8:12pm

Lots out there. You can filter on OU if desired. Modify the scripts as required. Some samples: http://www.exchangepedia.com/blog/2006/11/exchange-server-2007-bulk-creation-of.html Bulk creation of mailboxes using Exchange Management Shell http://www.exchangeninjas.com/PSSCategories PowerShell Scripts You sir, are my hero. Many thanks!!
April 19th, 2010 8:33pm

This would mailbox enable every user in the "finance" OU: Get-User -OrganizationalUnit contoso.com/finance | Enable-Mailbox If that's not what you need can you provide more details? What attributes do you need to set? Where would the values come from?
Free Windows Admin Tool Kit Click here and download it now
April 19th, 2010 8:34pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics