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
1 |
Get-MailboxDatabase -identity “Mailbox Database†| Add-ADPermission -User "Trusted User"-AccessRights GenericAll |
Now access to all mailboxes:
1 |
Get-Mailbox -ResultSize Unlimited -Database "Mailbox Database" | Add-MailboxPermission -User "Trusted User" -AccessRights FullAccess |
For Send As:
1 |
Add-ADPermission -Identity "Mailbox Database" -User "Trusted User" -ExtendedRights Send-As |
For Recieve As:
1 |
Add-ADPermission -Identity "Mailbox Database" -User "Trusted User" -ExtendedRights Receive-As |
In exchange 2010 only you can use this command:
1 |
$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.