H all,
I have been struggling with Dynamic DLs...
I have a domain with 3 sub-domains. Only some users on my top domain have mailboxes on exchange (we use another primary email system) and all users on the sub-domains are added to Exchange as Mail contacts and Mailusers.
So the idea is to create a DL for all users on each site. I want to be able to send email to all users on a particular office.
So, following the TechNet articles I do:
[PS] C:\Windows\system32>New-DynamicDistributionGroup "Test1" -RecipientFilter {(RecipientType -eq 'MailUser') -and (Office -eq 'Office2')}
All users have the Office field filled.
The DL appears on my ECP. Now to see what members the list has (should pull all members with "Office2" on AD) I do:
$members = Get-DynamicDistributionGroup -Identity "Test1"
[PS] C:\Windows\system32>Get-Recipient -RecipientPreviewFilter $members.RecipientFilter | select Displayname,PrimarySmtp
Address
When I press return, it just returns (nada, nothing, nicles):
[PS] C:\Windows\system32>
On other Distribution lists, it works...
For this particular location I converted the mailcontacts to mailusers because I was having problems on sending emails to this DL. Basically the email was purely not sent but it didn't return any error message.. just discarded. If I run a message tracking on ECP all I can see is: "Delivery report information for this message is no longer available."