Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Mass Create Mailboxes for Existing Users

Status
Not open for further replies.

wirk

MIS
Jan 20, 2003
40
US
with PowerShell to use with Exchange 2010 /Server 2008 R2.

Anybody have luck with this ?

Thanks in advance.
 
You'd have to do a Get-User and then pipe that to New-Mailbox. The issue is defining a Get-User statement that gets just the users you want. Are they all in one OU?

Pat Richard MVP
Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
 
Got It:

import-csv "C:\Scripts\enableBULKMailboxUsersEX2010.csv" | foreach {enable-MailBox -identity $_.identity -PrimarySmtpAddress $_.PrimarySmtpAddress -Alias $_.Alias -Database $_.Database}
 
You don't need to use the CSV.



I hope that helps.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
I've used your script with Exchange 2007, but it
does not work with Exchange 2010.
 
Thank you both for your support.

Unfortunately since the 26th of August, I do not have access to my test Exchange 2010 Server.

Don’t remember the errors. I know about the database, but the 2007 scripts did not work for me.

I take it they worked for both of you.

Thanks again.
 
In looking at Mark's link, I don't see why that wouldn't work except for maybe the server name. But without seeing the error, I can't help any further.

Pat Richard MVP
Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top