Remove Auto-Mapping

Problem:

Auto-mapping, the ability for Exchange to add a shared mailbox to Outlook needs to be turned off for whatever reason.

Solution:

Connect to Power Shell (please make sure that you set up Power Shell properly for this access):

  1. Run Windows Power Shell
  2. $UserCredential = Get-Credential
  3. $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
  4. Import-PSSession $Session

Turn off auto-mapping:

  1. Remove-MailboxPermission -Identity <Mailbox ID1> -User <Mailbox ID2> -AccessRights FullAccess
    1. This removes full access permissions
  2. Hit Y
  3. Add-MailboxPermission -Identity <Mailbox ID1> -User <Mailbox ID2>-AccessRights FullAccess -AutoMapping:$false
    1. This adds full access permissions without auto mapping
  4. Hit Y
  5. Run this command:   Remove-PSSession $Session