If you are like me, you probably use Microsoft Outlook every day at work or at home, along with some shared mailboxes.
This also applies to delegated access.
I like being able to access my shared mailboxes, but when I add my main account, the shared mailboxes are also attached to my Outlook. While that is great in some cases, having multiple e-mails in my Outlook can be extremely heavy and can create some issues (performance etc.).
In cases where the user has access to many mailboxes, this may result in performance bottlenecks when Outlook starts. As an example, some organizations allow administrators full access to all users’ mailboxes within their organization. In such cases, Outlook attempts to open all mailboxes in the organization.
Then how can we maintain access to shared/delegated mailboxes while disabling auto mapping at the same time? Fortunately, we can. We can do this with PowerShell. Let’s take a look.
- Open PowerShell as administrator and connect to exchange online.
- Now, remove full access permissions for the user from the mailbox.
Remove-MailboxPermission -Identity "Mailbox ID1" -User "Mailbox ID2" -AccessRights FullAccess
IMPORTANT: In this command, <Mailbox ID1> represents the mailbox to which the user is granted permissions, and <Mailbox ID2> is the mailbox of the user from whom you want to remove full access permissions.
Here is an example:
Remove-MailboxPermission -Identity [email protected] -User [email protected] -AccessRights FullAccess
After you execute the command, select Y and hit Enter.
Now, run the command below, this will assign back Full permissions, but automapping will be disabled.
Add-MailboxPermission -Identity -User -AccessRights FullAccess -AutoMapping:$false
That should do it. Now when you open Outlook, the shared/delegated mailboxes will not be automatically attached.