Solved

How to bulk create LINKED mailboxes in Exchange 2007

Posted on 2008-10-22
4
2,268 Views
Last Modified: 2012-05-05
Hello,
I am creating mailbox in Exchange 2007 SP1 using a dedicated exchange domain topology.  I have created some individual test accounts and am familiar with the creation of Linked mailboxes through the emc.  I was wondering if anyone can point me to instructions on doing a bulk creation of Linked mailboxes?
I have 170 users in the accounts domain and it would be a pain to create them all individually.
thanks,
FlofromTO
0
Comment
Question by:martinichick
  • 2
  • 2
4 Comments
 
LVL 8

Expert Comment

by:mikainz
ID: 22777859
you can make a powershellscript.
see http://technet.microsoft.com/en-us/library/bb123524(EXCHG.80).aspx - at the end there is the command for Exchange powershell.

If you use Excel to build the script by formulas with a dump of you AD attributes you will get you script file fast.
hth
0
 

Author Comment

by:martinichick
ID: 22782145
Thanks mikainz.  I appreciate the reference.  I had seen that article previously.  It does indeed tell me how to creat an individual linked mailbox in the powershell.  I am looking for the steps to create a bulk import and creation of 170 mailboxes.  Does anyone have a reference to a step-by-step on this?  Perhaps this is what you meant in the "excel to build the script", but I'm sorry, I'm slow and I don't know what you mean by this.
Cheers,
floinTo
0
 
LVL 8

Accepted Solution

by:
mikainz earned 500 total points
ID: 22783578
Step 1
Export users from Active directory to csv or excel file (see for an example in vbscript http://www.visualbasicscript.com/m_29830/tm.htm)

Step 2
Import the file into Excel and build a formula to get the right string for the powershell command
="New-Mailbox -Database ""Mailbox Database 1"" -Name " & A1 & " -LinkedDomainController"  and so on ..
until you get your
New-Mailbox -Database "Mailbox Database 1" -Name "John Peoples" -LinkedDomainController "DC01fabrikam" -LinkedMasterAccount fabrikam\john -OrganizationalUnit Users -UserPrincipalName john@contoso.com -LinkedCredential:(Get-Credential fabrikam\Admin01

Step 3
Copy and paste those column into notepad and save it as powershell script

Step 4
let it run at the Exchange command shell prompt.
0
 

Author Comment

by:martinichick
ID: 22823926
Thanks. this was helpful.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now