How do I automatically create an Exchange mailbox for all members of the domain?

John Savill

December 21, 1999

2 Min Read
ITPro Today logo in a gray background | ITPro Today

A. Exchange can import users from a comma-separated-file (CSV) of theformat:

Obj-Class,Common-Name,Display-Name,Home-Server,Comment
Mailbox,Administrator,,~SERVER,Built-in account for administering thecomputer/domain
Mailbox,batman,Bruce Wayne,~SERVER,
Mailbox,denise,denise van outen,~SERVER,
Mailbox,Exchange Service,Exchange Service,~SERVER,
Mailbox,Guest,,~SERVER,Built-in account for guest access to thecomputer/domain
Mailbox,IUSR_ODIN,Internet Guest Account,~SERVER,Internet Server AnonymousAccess
Mailbox,IWAM_ODIN,Web Application Manager account,~SERVER,Internet Server WebApplication Manager identity Mailbox,krbtgt,,~SERVER,Key Distribution CenterService Account
Mailbox,MTS_ODIN,MTS_ODIN,~SERVER,Transaction Server system packageadministrator account

Exchange has the ability to generate this file from either a NT domainlisting or a NetWare account list.

  1. Start the Exchange Administrator Program

  2. From the Tools menu select "Extract Windows NT Account List"(also notice the NetWare option)

  3. Select the domain and a domain controller and click the browse button toselect a directory and filename for the output. Click OK

  4. A summary will be shown listing any errors encountered. Click OK

The file generated has ALL accounts in the domain (as can be seen in theexample), for example Exchange service accounts, guest account, IIS accounts soyou may want to edit the file generated and remove the lines for whom accountsshould not be created.

Once the file has been edited to satisfaction perform the following:

  1. Start the Exchange Administrator Program

  2. From the Tools menu select "Directory Import"

  3. Select the Windows NT domain and the MS Exchange Server. You can alsoselect the container however you should leave this as the default"Recipients"

  4. Click the "Import File" and enter the location and name of the.CSV file created earlier. You can also select to create a Windows NT accounthowever since these accounts were generated by a domain listing its not needed.Click the Import button

  5. The file will be read in and mailboxes created. Again a summary will bedisplayed showing any errors.

Click here to view image
- Example Import from Domain file

Every member of your domain now has a mailbox on the Exchange server. Inlarger domains with multiple Exchange sites you may edit the file and importsome people into one Exchange site and others into a different site dependingon their geographical location.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like