How do I add an Administrator Account with Full Permissions to All Exchange 2010 Mailboxes in one script

Posted on 2012-09-04
Medium Priority
Last Modified: 2012-09-06
I need to add an administrator account with full mailboxes permission to all Exchange 2010 mailboxes in one easy powershell script.

I hope to avoid doing this one-by-one using the Manage Full Permission EMC GUI or one powershell command for each mailbox. This is needed for a migration from Rackspace to Exchange using MigrationWiz.com

Thanks in advance,
Question by:Freda Driscoll-Sbar
LVL 17

Expert Comment

by:Lior Karasenti
ID: 38364332

Assisted Solution

colonytire earned 750 total points
ID: 38364454
Try this to give Domain admins full access to all mailboxes.

Get-MailboxDatabase -identity “SERVERNAME\First Storage Group\Mailbox Database” | Add-ADPermission -user “Domain Admins” -AccessRights GenericAll

Try this for giving a single user (mailuser) full access to all mailboxes:

Get-MailboxDatabase -identity “SERVERNAME\First Storage Group\Mailbox Database” | Add-ADPermission -user mailuser -AccessRights GenericAll

Author Comment

by:Freda Driscoll-Sbar
ID: 38364593
One database, one server hosting all roles.
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.


Author Comment

by:Freda Driscoll-Sbar
ID: 38364659

I'll try the command and reply shortly...

Thank you,
LVL 19

Accepted Solution

suriyaehnop earned 750 total points
ID: 38366665
To add full access to one mailbox:

Add-MailboxPermission -Identity suriya -User itsupport -AccessRights FullAccess

Open in new window

To add full access to all mailboxes:

Get-Mailbox -ResultSize unlimited | foreach { Add-MailboxPermission -Identity $_ -User itsupport -AccessRights fullaccess}

Open in new window


Author Comment

by:Freda Driscoll-Sbar
ID: 38372388
See attached; I may have the path wrong...

Expert Comment

ID: 38372559
Nothing attached.

Author Closing Comment

by:Freda Driscoll-Sbar
ID: 38374030
Thank you!

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you looking for the options available for exporting EDB files to PST? You may be confused as they are different in different Exchange versions. Here, I will discuss some options available.
If you have come across a situation where you need to find some EDB mailbox recovery techniques, then here you will find the same. In this article, we will take you through three techniques using which you will be able to perform EDB recovery. You …
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Suggested Courses
Course of the Month16 days, 20 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question