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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using shell to add mailbox for existing user.

Status
Not open for further replies.

joejack0330

Technical User
Jan 27, 2006
95
US
We just upgraded from 2003 to 2010 and looking for correct syntax to create a mailbox for an existing domain user who does not have any mailbox created yet. We have another issue with management console so trying to do it quick through shell. I tried various options but can't get it.

Domain User Name: John Smith
OU: CommonUsers
Internal Domain: gntrad.local
External Domain: general-trading.com
Email: JSmith@general-trading.com
Exchange Server Name: Exchange2010

Thanks, Joe
 
Enable-Mailbox -Identity 'contoso.com/Users/John Doe'

-Alias 'john.doe' -Database 'CN=Mailbox Database,

CN=First Storage Group,CN=InformationStore,

CN=E2007-3,CN=Servers,CN=Exchange Administrative Group
(FYDIBOHF23SPDLT),CN=Administrative Groups,

CN=335A1087-5131-4D45-BE3E-3C6C7F76F5EC,CN=Microsoft
Exchange,CN=Services,CN=Configuration,

DC=contoso,DC=com'


Allen White MCSE,MCSA,MCITP,MCTS,CCA,CCSP,VCP
 
Assuming only one database called "Mailbox Database":

Code:
[url=http://technet.microsoft.com/en-us/library/aa998251(EXCHG.80).aspx]Enable-Mailbox[/url] -Identity 'John.Doe' -Alias 'john.doe' -Database 'Mailbox Database'

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