exchange 2010 Adding Full access via EMC Shell

We have Exchange 2010.  We are migrating some users from our mail servers to another company.  A vendor tried to take 300 mailboxes and using a script add a Service account needed to the Full access permission via the Shell in EMC.  The cmd is below and repeats for all 300 mailboxes.  It seems to run successfully but when you open the EMC GUI and check Full Access permission the Service account is not there.

Add-MailboxPermission Service.account  -User -AccessRights FullAccess -InheritanceType All -Automapping $false

Any idea why it doesn't work?

Who is Participating?
Nick RhodeConnect With a Mentor IT DirectorCommented:
is that powershell backwards?  So from the shell above user1 is gaining full access to service.account?

Add-MailboxPermission "*Target User*" -User "*User*" -AccessRights FullAccess -Automapping $false
Simon Butler (Sembee)ConsultantCommented:
What permissions does the service account have? Is it a regular account or a domain admin? If it is a domain admin then the permissions will be immediately removed.

Twhite0909Author Commented:
BOOM!  That was it homie!  DAYUM YOU GUYS ARE GOOD!
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Twhite0909Author Commented:
Now here is a twist....once I ran that command using my own email address as the test on my Outlook Client now I see the Service accounts mailbox and I can access it.  I thought the Automapping switch would stop this no?
Nick RhodeIT DirectorCommented:
It should prevent it from automapping unless it was added without that attribute or done via the EMC
Twhite0909Author Commented:
No I didn't add the service account o my Full Access Control via the EMC I just ran the cmd above
Twhite0909Author Commented:
YUP I got it.  It was added before by running the incorrect cm,d.  I removed and then re-ran the cmd as you stated and it did it correctly without automapping  Thank you
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.