Add Exchange mail box disabling the auto mapping in outlook.

Table of Contents

Outlook 2010 has this cool feature that auto maps the mailboxes that you have full access to. But some times you want to have access to everyone email but not have them taking up space on your outlook.


This command will add full access for to everyone but the Admin mail box. 

Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'UserMailbox') -and (Alias -ne 'Admin')} | Add-MailboxPermission -User -AccessRights fullaccess -InheritanceType all -AutoMapping:$false
And This command will add to the accounts mailbox.
Add-MailboxPermission -Identity Accounts -User -AccessRight FullAccess -InheritanceType All -Automapping $false