Avatar of 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
ExchangeActive DirectoryEmail Servers

Avatar of undefined
Last Comment

8/22/2022 - Mon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Works like a charm thanks
Your help has saved me hundreds of hours of internet surfing.