I am in the midst of a email migration and I needed to give send-as permissions to a service account for all mailboxes in a specific exchange database. I ran the below command:
Get-mailboxdatabase "dbname"| Add-ADPermission -User xx\serviceaccount -ExtendedRights Send-As
This appaerntly broke something with mailbox full access permissions for the service account as it can nolonger logon to the mailboxes on the database I ran this against. I tried running the command but it doesn't reset the permissions:
Get-mailboxdatabase "dbname"|Add-ADPermission -User xx\serviceaccount –AccessRights GenericAll -ExtendedRights Send-As,Receive-As
If I manually remove and re-add permssions in EMC on an individual mailbox, it works fine. I was gong to run the following command but I'm not sure what the results will be:
get-mailboxdatabase "dbname" | get-mailbox | add-mailboxpermission -user xx\serviceaccount -accessrights fullaccess -inheritancetype all
Any help will be greatly appreciated
Drdra11