Powershell script to list users not on a distribution list
I have an Exchange 2007 server and am needing a powershell script to look at a distribution list with nested distribution lists inside of it and then export a csv of all the mailboxes not in this distribution list.
The DL looks similar to this:
entirecompanydl
dept 1
dept1 directors office
dept1 people
dept 2
dept2 directors office
dept 2 people