Mailbox-Enabling a User

A mailbox-enabled user is a user who has a mailbox defined in the Exchange organization where the user object exists. This is the most common object in an Exchange organization.

Using a graphical user interface

  1. Open the ADUC snap-in.
  2. This needs to be run on a workstation or server that has the Exchange Management Tools loaded
  3. If you need to change domains, right-click on Active Directory Users and Computers in the left pane, select Connect to Domain, enter the domain name, and click OK.
  4. In the left pane, browse to the parent container of the user, right-click on the user, and select Exchange Tasks.
  5. On the Welcome screen, click Next.
  6. Select Create Mailbox and click Next.
  7. Verify the mail alias is what you want, select the server you want the mailbox on, select which store where you want the mailbox, and click Next.
  8. On the Completion screen, click Finish.

Using a command-line interface

> exchmbx -b "<UserDN>"-cr"<server>:<storage group>:<mail store>"

Or alternatively, run the following command:

> exchmbx -b <UserDN> -cr"<Home MDB URL>"

To mailbox-enable user joe with a mailbox on Exchange Server SRV1, Storage group SG1, and mailbox store DB1, execute the following command:

> exchmbx -b "cn=joe,cn=users,dc=rallencorp,dc=com"-cr "srv1:sg1:db1"

Replace <UserDN> with the user’s distinguished name, <server> with the Exchange server name, <storage group> with the storage group, <mail store> with the mail store, and <Home MDB URL> with the full homeMDB URL for the desired mailbox store.

Using VBScript

' This code creates a mailbox for a user.' ------ SCRIPT CONFIGURATION ------

strUserDN = "<UserDN>"   ' e.g., cn=jsmith,cn=Users,dc=rallencorp,dc=com

strHomeMDB = "<Home MDB DN>"

' e.g. CN=Mailbox Store (SERVER),CN=First Storage Group,CN=InformationStore,

' CN=SERVER,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,

'      CN=RALLENCORPMAIL,CN=Microsoft Exchange,CN=Services,

'      CN=Configuration,DC=rallencorp,DC=com"

' ------ END CONFIGURATION ---------

set objUser = GetObject("LDAP://" & strUserDN)

objUser.CreateMailBox strHomeMDB

objUser.SetInfo( )

Wscript.Echo "Successfully mailbox-enabled user."