PowerShell Modify Dynamic Groups created using the GUI

Im using Exchange 2013 and our environment has several dynamic distribution lists. All dynamic lists have been created using the EAC GUI. Im using the Department field and custom attributes of the users AD accounts to populate them. All the data Im using to populate the dynamic list is coming from an HR system. The problem that Im having is that several departments use the same administrative assistance and they want to include them in their dynamic lists. The administrative assistance already below to their own Department, but they need to be included on others as well.  How can I make sure that the same dynamic list HR includes members with Department "Human Resources" and Admin Assistance with CustomAttribute11 "Administrative Assistance"

 



  • Edited by Maya10 14 hours 17 minutes ago
April 17th, 2015 6:47pm

Hello

from that powershell query not list:

$FTE = Get-DynamicDistributionGroup "groupname"
Get-Recipient -RecipientPreviewFilter $FTE.RecipientFilter

Free Windows Admin Tool Kit Click here and download it now
April 17th, 2015 7:55pm

Thank you for your response but that is what I used to view/export members. It works if I remove either one of the conditions, but I need to be able to get both Department "Human Resources" and CustomeAtrribute11 "Administrative Assistance"  

this is the one I have always used, but like I said it doesn't work in this case.

$members = Get-DynamicDistributionGroup -Identity "Dynamic Group Test"
Get-Recipient -RecipientPreviewFilter $members.RecipientFilter -ResultSize unlimited | select Displayname,PrimarySmtpAddress,Department > C:\Exports\DT.txt

April 17th, 2015 8:42pm

Hello

what is cu version?
if change Administrative Assistance to simple: "a" in 11 and change query add to member user?

Free Windows Admin Tool Kit Click here and download it now
April 18th, 2015 5:42pm

I found the problem. The way I have it setup is basically saying the users have to meet both conditions instead of meeting one or the other in order to be added to the same dynamic list which what I really want. Is it possible to modify dynamic list that have been created using the GUI with the precanned filters using PowerShell? That is going to be the only way to accomplish what I'm trying to do, but I don't want to break them.  
April 19th, 2015 1:01pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics