question

doboman avatar image
0 Votes"
doboman asked

Online Exchange Dynamic distribution group filter by Manager

Hi team ,

I need to create DDL and filter by Manager,as a test did the below.
I'm not getting any results & no errors.

$Filter = "((Manager -eq 'John Doh') -and (ExchangeUserAccountControl -ne 'AccountDisabled'))"
Get-Recipient -RecipientPreviewFilter $Filter | ft displayname, title

Also tried

(Manager -eq 'CN=first last,OU=testOU,OU=Office,DC=consto,DC=com')

So what I'm missing ?
Thank you Kindly.

azure-ad-group-management
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers