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

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,
Freda Driscoll-SbarDirector of System OperationsAsked:
Who is Participating?
 
suriyaehnopConnect With a Mentor Commented:
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

0
 
Lior KarasentiCommented:
0
 
colonytireConnect With a Mentor Director of TechnologyCommented:
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
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
Freda Driscoll-SbarDirector of System OperationsAuthor Commented:
One database, one server hosting all roles.
0
 
Freda Driscoll-SbarDirector of System OperationsAuthor Commented:
Colonytire,

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

Thank you,
0
 
Freda Driscoll-SbarDirector of System OperationsAuthor Commented:
See attached; I may have the path wrong...
0
 
colonytireDirector of TechnologyCommented:
Nothing attached.
0
 
Freda Driscoll-SbarDirector of System OperationsAuthor Commented:
Thank you!
0
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.