troubleshooting Question

AutoMapping Office 365

Avatar of moeshakir
moeshakirFlag for United States of America asked on
Microsoft 365Powershell
2 Comments1 Solution352 ViewsLast Modified:
I gave full access to all user mailboxes to an admin using the below command through Powershell.

Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'UserMailbox')} | Add-MailboxPermission -User abc@abcd.com -AccessRights FullAccess -InheritanceType all

It ended up crashing the users outlook profile and auto mapping all users.

Is there a command to remove auto mapping without removing mailbox permission?
I also like to know what is the powershell command to completely remove all mailbox permissions?

Will it be this?

Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'UserMailbox')} | Remove-MailboxPermission -User abc@abcd.com -AccessRights FullAccess -InheritanceType all -Automapping $false

Thanks for anyones help.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros