Forum Discussion
Tech_Guy-3000
Apr 22, 2024Copper Contributor
Basic user query in Exchange online (on way to create a DDL) "it's not getting what I want"
[ Spoiler ] I have been trying to construct an additional DDL that won't work in the "canned queries". Basically my logic was company=RRR, State=NY OR State=Remote The concept being get staff fro...
VasilMichev
MVP
The query seems OK, though you don't need to append the "system" part. How are you verifying the results? If using the Get-DynamicDistributionGroupMember, keep in mind that it can take up to 24 hours to get the correct results. Also, as this is an Exchange group, only valid recipients will be included. If you have users that are not licensed for Exchange (and not created as mail users), they will not appear.
Tech_Guy-3000
Apr 22, 2024Copper Contributor
I'm verifying the results in powershell. Other DDL's that I test give me data this one does not. That's also why I want to be able to just put in a query at the CLI and test. If my query is ok than my logic is faulty ergo why I want to manually try some queries at the CLI. VasilMichev
- VasilMichevApr 23, 2024MVPYou can do so via the Get-Recipient -RecipientPreviewFilter cmdlet. Not every filter is supported for DDG, but most of the time it works.