Link to home
Start Free TrialLog in
Avatar of JBoettcher
JBoettcher

asked on

Struggling to make a linked email account through Shell

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
ASKER CERTIFIED SOLUTION
Avatar of als315
als315
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JBoettcher
JBoettcher

ASKER

Works like a charm thanks