Forum Discussion
Multiple email boxes showing up in Outlook client
VasilMichev Thank you. To clarify what I need. I get requests from users for Email (Outlook) issues from time to time that are usually resolved best by going into the web interface, the "accessing another users mailbox". Therefore, I ran the script I did. I would like to retain the full access, but not have them show up in the client. The reason I ran the script I found was because it was always difficult to find where, in the GUI, to turn this on and off so I could access a mailbox. So I guess I would like to try your solution first, remove the "Auto Mapping" flag.
Is there a PowerShell script to do this or is it somewhere in the Admin portal that can do it?
You should be able to turn off the AutoMapping flag with the following cmdlets.
Get-Mailbox | Remove-MailboxPermission -User MyAccount -AccessRights FullAccess -InheritanceType All
Get-Mailbox | Add-MailboxPermission -User MyAccount - AccessRights FullAccess -InheritanceType All -AutoMapping $False
You may want to filter the Get-Mailbox to return only user mailboxes. From the documentation the Identity parameter is not required if you are piping in the mailboxes. There may be a propagation delay for the permission to take effect. As suggested before you may want to recreate the Outlook profile.
In the cmdlet documentation example 4 shows a very similar assignment.
https://docs.microsoft.com/en-us/powershell/module/exchange/add-mailboxpermission?view=exchange-ps#parameters