Link to home
Start Free TrialLog in
Avatar of Twhite0909
Twhite0909

asked on

Script to Remove Disabled users from All Shared mailboxes

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?
ASKER CERTIFIED SOLUTION
Avatar of Ciprian Lozonschi
Ciprian Lozonschi
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial