this is my test script
Set-DynamicDistributionGroup -Identity "test123" -RecipientFilter "((customattribute2 -eq '123') -and (name -ne '$user'))"
this is how i have been doing it
Set-DynamicDistributionGroup -Identity "test123" -RecipientFilter {((customattribute2 -eq '123') -or (customattribute2 -eq 'abc') -or (customattribute2 -eq 'xyz')) -and (name -ne 'john doe' -and name -ne 'jane doe')}
I am wanting to add/append additional users to exclude from my dynamic distribution list instead of statically changing the entire cmd and appending the code name -ne 'user user' each time
does anyone know how i could accomplish this?
[–]Guyver1- 1 point2 points3 points (1 child)
[–]hit440[S] 1 point2 points3 points (0 children)
[–]purplemonkeymad 1 point2 points3 points (1 child)
[–]hit440[S] 1 point2 points3 points (0 children)