Grant Full Access to All Mailboxes in Exchange 2010

Add the first line seperately

$user = Read-Host -Prompt:”Enter UserName to grant permissions”;

It will ask you to enter in a username that you want to grant full access for

Add this second line and it gives the permission to all the databases in Exchange 2010

$organization = Get-OrganizationConfig;
$databasesContainer = “CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,” + $organization.DistinguishedName;
Add-ADPermission -User:$user -AccessRights ExtendedRight -ExtendedRights Receive-As, Send-As, ms-Exch-Store-Admin -Identity:$databasesContainer;

Mark as helpful. 0

Posted in: Exchange

Posted in