Fix AutoMapping

Reading Time: 1 minute[code language=”powershell”] $FixAutoMapping = Get-MailboxPermission sharedmailbox |where {$_.AccessRights -eq "FullAccess" -and $_.IsInherited -eq $false}
$FixAutoMapping | Remove-MailboxPermission
$FixAutoMapping | ForEach {Add-MailboxPermission -Identity $_.Identity -User $_.User -AccessRights:FullAccess -AutoMapping $true}
[/code]

 

 

Add a Comment

Your email address will not be published. Required fields are marked *