I am using Exchange Server 2010 and I'm having an issue that is eating a lot of my time. I'm not super savvy when it comes to PowerShell, but I'm working on it.
I have created several dynamic distribution lists. I love ddl's, but I hate them. I have removed approximately 20 mailboxes from the server in a purge effort. I did this about three months ago. Today, I was trying to add someone to the ACL on one of my DDLs, but I received the error that it could not find those users whose boxes I deleted, but were supposed to exist in the ACL of that list.
After searching, i re-created all 20 of the mailboxes I had purged, and was able to remove them from the ACL (because they don't appear in the ACL if they don't have a mailbox, though they clearly exist in the ACL).
The grand question is this:
Is there a way to remove a user mailbox that will also remove them from any DDL acl? If only through Powershell, then I have another question.
What is the cleanest way to identify a single user's membership in DLs (dynamic or static), and any ACL entries they may have.