Exchange 2007: Give a user full access to all mailboxes

The following command will give full access to the Mailbox database including future mailboxes when they are created. Just change the name of the Mailbox Database to yours and the name to the one you wish to use

Get-MailboxDatabase -identity “Mailbox Database” | Add-ADPermission -User "Trusted User"-AccessRights GenericAll

Now access to all mailboxes:

Get-Mailbox -ResultSize Unlimited -Database "Mailbox Database" | Add-MailboxPermission -User "Trusted User" -AccessRights FullAccess

For Send As:

Add-ADPermission -Identity "Mailbox Database" -User "Trusted User" -ExtendedRights Send-As

For Recieve As:

Add-ADPermission -Identity "Mailbox Database" -User "Trusted User" -ExtendedRights Receive-As

In exchange 2010 only you can use this command:

$organization = Get-OrganizationConfig; $databasesContainer = "CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups," + $organization.DistinguishedName; $user = Read-Host -Prompt:"Enter UserName to grant permissions"; Add-ADPermission -User:$user -AccessRights ExtendedRight -ExtendedRights Receive-As, Send-As, ms-Exch-Store-Admin -Identity:$databasesContainer;

Make sure you have OWA enabled for the user to view the mailbox.