Struggling to make a linked email account through Shell

JBoettcher
JBoettcher used Ask the Experts™
on
After creating a new user in AD, I would like to pass a command to Exchange Shell to create the new linked mailbox, I'd like exchange to use it's default naming rules to create the email address.

I'm using this command as Domain Admin but receiving errors...

New-Mailbox -Database "My Mailbox Database" -Name "Johnny Bravo" -LinkedDomainController "MYDC" -LinkedMasterAccount "Johnny Bravo@contoso.local" -OrganizationalUnit Users

Open in new window


here is my error


The resource user can't be linked to a user account from the local forest "mydc.local".
Category Info : NotSPecified: (:) [], TaskInvalidOperationExcpetion
FullyQualifiedErrorId : 6CE5B7E9
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
New-Mailbox creates new user in AD and enables mailbox. For existing user you should use Enable-Mailbox:
http://technet.microsoft.com/en-us/library/aa998251.aspx

Author

Commented:
Works like a charm thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial