Link to home
Start Free TrialLog in
Avatar of Mike Walker
Mike Walker

asked on

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:
  dept 1
    dept1 directors office
    dept1 people
  dept 2
    dept2 directors office
    dept 2 people
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

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


Sadly Get-Recipient is not a cmdlet in Exchange 2007
This person is using it in Exchange 2007. Do you have SP3 CU15+ installed?
I'm running Exchange 2007 SP3 UR17
I guess by default I was running it in powershell without the Exchange snapin. When I threw in:

"add-pssnapin Microsoft.Exchange.Management.PowerShell.Admin"

Everything worked.