We run Exchange 2013 On Prem with Dirsync enabled for AD. Im looking for a script or simple cmdlet to run on EMC or AD Powershell that will perform one of the following or both:
1. remove All Disabled users from Full Access permissions on All Shared mailboxes
2. Remove Full Access for a specific user from All Shared mailboxes he/she may be apart of.
I know the scripts/cmdlet to target the removal of a specific users Full Access permissions from a Specific mailbox but what I'm looking for is when a User leaves the company and we are not sure of all the mailboxes they may have permissions to. How can I do a broad scoped removal of these permissions?