How can I add members to an distr group in Exchange based on membership of an AD group.
$members = (get-group Consultants).members
Add-distributiongroupmember -identity "Consultants" -members $members
This one fails. I would like this AD group Consultants to be queried each time to verify members and from there add them to the given mail distr group.