Address List and RecipientFilter for dynamic distribution lists

Hi guys
I am trying to setup a Address List in exchange that contains dynamic distribution lists specified by the list name. So address List abc should contain dynamic distribution lists with list names "def" and "ghi" and "jkl"
So far I have come up with below which displays all dynamic distribution lists. this works but how can I now filter further to specific lists?
New-AddressList -Name abc -RecipientFilter {((Alias -ne $null) -and (ObjectClass -eq 'msexchdynamicdistributionlist'))}
Example of what I am trying to acheive:
New-AddressList -Name abc -RecipientFilter {((Alias -ne $null) -and ((ObjectClass -eq 'msexchdynamicdistributionlist') -and ('msexchdynamicdistributionlist' -eq 'def') -or ('msexchdynamicdistributionlist' -eq 'ghi') -or ('msexchdynamicdistributionlist' -eq
'jkl'))}

Hi,
I have some tests in my environment using Exchange 2013. You can use the following cmdlet to create an address list that contains specified distribution group members.
New-AddressList -Name test3 -RecipientFilter {((Alias -ne $null) -and (MemberOfGroup -eq 'CN=Sales,CN=Users,DC=contoso,DC=com'))}
Note that it can't work for dynamic distribution group. In your case, I haven't found a parameter for dynamic distribution group in Exchange, your understanding will be appreciated.
Hope my clarification can be helpful to you.
Best regards,
Amy Wang
TechNet Community Support

Similar Messages

  • MailTips for Dynamic Distribution Lists - wrong number of recipients

    We use Exchange 2013 and Outlook 2013. We have a Dynamic Distribution List ([email protected]) configured on Exchange. It contains 75 users, I confirmed it using below cmdlets in Exchange management shell
    $all = Get-DynamicDistributionGroup [email protected]
    Get-Recipient -RecipientPreviewFilter $all.recipientfilter
    When I use Outlook to create a new email to [email protected] there is a MailTip displayed mention about 87 of recipients, it should be 75 users. 
    Settings on our Exchange servers are as below:
    [PS] C:\Windows\system32>Get-OrganizationConfig | fl *mailtip*
    MailTipsAllTipsEnabled                : True
    MailTipsExternalRecipientsTipsEnabled : False
    MailTipsGroupMetricsEnabled           : True
    MailTipsLargeAudienceThreshold        : 25
    MailTipsMailboxSourcedTipsEnabled     : True
    Any idea how to troubleshoot it?

    In Active Directory attributes for this group are as below
    msExchGroupMemberCount =
    87msExchGroupExternalMemberCount
    = 0 
    Regarding
    files under %ExchangeInstallPath%GroupMetrics there is only cookie file modified yesterday and
    it contains as below:
    DC=domain,DC=com;12/28/2014 13:11:15;05/14/2013 20:02:24
    Just created new dynamic distribution group with the same filter as for group all (for test purpose). There is no MailTip for this new group now. Is it possible to force \ speed up group metrics generation?

  • (Do I) Need to update legacy WMI filter for Dynamic Distribution List

    Wrapping up migration from Exchnage 2003 to Exchange 2010.  Have one special DDL called "Everone" that filters for all users with mailboxes AND that are not disabled.  This is used for broadcast notices and the second paramater eliminates
    NDR's generated by disabled AD accounts that still have mailboxes.
    Here is the filter that was created in Exchange 2003:
    (&(!cn=SystemMailbox{*})(& (mailnickname=*) (| (&(objectCategory=person)(objectClass=user)(!userAccountControl:1.2.840.113556.1.4.803:=2)(|(homeMDB=*)(msExchHomeServerName=*))) )))
    (I hope that pasted right)
    I will be removing the old Exchange 2003 server soon and need to know if the DDL filter needs to be upgraded before I remove the old server (will it break if not).
    Additionally,  I think it may need to changed it to an OPATH compatible filter from the EMS and would need help with how to do that.  The canned options do not seem to cover the "only enabled users" paramater.

    Hi,
    Have you checked the suggestion Ed provided?
    Is there any update with your issue?
    Best regards,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Amy Wang
    TechNet Community Support

  • Using -like operator to select recipients for Dynamic Distribution Group

    Dear Scriptor,
    I got few thousand of data and would like to select recipient according to the CustomAttribute1.
    Below is the sample data in my database.
    Name: User1, CustomAttribute1: aa, bb, cc
    Name: User2, CustomAttribute1: aa, bb
    Name: User3, CustomAttribute1: bb, cc, dd
    If I run the script as below,
    New-DynamicDistributionGroup -name "myDyna.bb" -RecipientFilter {(CustomAttribute1 -like 'aa*')}
    The return result is User1 and User2
    When I run the script as below,
    New-DynamicDistributionGroup -name "myDyna.bb" -RecipientFilter {(CustomAttribute1 -like 'bb*')}
    No result returned
    How can I overcome this issue?
    Thanks.

    Below are my sample data in O365.
    Type
    Identity
    UserPrincipalName
    DisplayName
    FirstName
    LastName
    CustomAttribute1
    Mailbox
    77771111
    [email protected]
    7777 #1
    7777
    #1
    a1, a2, a3
    Mailbox
    77772222
    [email protected]
    7777 #2
    7777
    #2
    a1, a2
    Mailbox
    77773333
    [email protected]
    7777 #3
    7777
    #3
    d4, a1
    Mailbox
    77774444
    [email protected]
    7777 #4
    7777
    #4
    a2, e5, f6
    Mailbox
    77775555
    [email protected]
    7777 #5
    7777
    #5
    g7, h8, i9
    Mailbox
    77776666
    [email protected]
    7777 #6
    7777
    #6
    g8, i9, a3
    I would like to create a DynamicDistributionList where CustomAttibute1 contain "a2".
    The expecting result are 77771111, 77772222 and 77774444.
    How can I write the script?
    I am using Windows Azure Active Directory Module for Windows Powershell. I run the $PSVersionTable.PSVersion and it returned me Major=4, Minor=0, Build=-1, and Revision=-1.
    This works for you case:
    New-DynamicDistributionGroup -name "myDyna.bb" -RecipientFilter {CustomAttribute1 -like '*a2*'}
    Do not use parens "()".
    ¯\_(ツ)_/¯

  • IS-OIL and suitability for Fuel Distribution and Retail Organisation

    Hi Folks,
    We have a client who is engaged in the distribution of oil and gas (eg. Forecourt Operations, Home Heating etc). They are considering implementing an SAP ERP system but would like to know if IS-OIL is suitable.  In particular, can it be integrated with Point of Sale terminals in the forecourt, and is it suitable for the retail side of operations (ie. Selling additional products from the forecourt - eg groceries etc).
    Also, is it possible for an organisation to implement both IS-OIL and IS-RETAIL together?  If so, does anyone have any experience or examples of where this was done?
    Thanks and regards,
    Jules

    Hello Jules,
    IS-OIL has an addon product called Service station retailing which deals with retail business on oil in petro stations. This can be integrated with forecourt systems.Example,the sales flow, the physical stock at service station etc can be sent periodically from point of sale system to R/3.
    Service station retailing deals with the retailing of bulk materials like fuel. A provision was made so that IS-Retail data will flow to the IS-OIL system. Depending on whether it is dealer owned or company owned, it can be further handled.
    But with ERP 6.0 release, you can turn on two industry solution switches i.e both IS-OIL and IS-Retail. This is being tested now.
    Best Regards,
    Soumya

  • Linking address book and msn for mac

    I've just recently got the new macbook pro, and I was wondering if there is a was I can put my contacts from address book, into msn?
    matt

    Probably, but first you need to export them from Address Book to a CSV file, then use the Import function of MSN Live to import them. You can get more info from their web site here.
    Mulder

  • Dynamic Distribution Group via csv file and Recipient Filter

    Hello,
    I am trying to create powershell command that will read a CSV file for "Name" and "Dept" and create a Dynamic Distribution Group based on the following Recipient Filter.
    Import-CSV Dist.csv | ForEach-Object {New-DynamicDistributionGroup -Name $_.Name -RecipientFilter {((((((Department -like $_.Dept) -and (RecipientType -eq 'UserMailbox'))) -and (UserAccountControl -ne 'AccountDisabled, NormalAccount'))) -and (-not(Name -like
    'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')))}
    I keep getting an error that "Missing closing '}" in statement block Char:314.  I added a "}" at the end of the command but then the command fails to read the .csv file.
    Assistance would be greatly appreciated to determine what I am missing.  I have over 100 Dynamic Distribution list to create.
    Cheers

    You're definitely missing a closing curly bracket.
    You have a lot of superfluous parentheses in that expression.  You could certainly simplify it.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • I fixed my iSync Problem it now syncs Address book and iCal on 10.4.9

    Ever since updating to the latest version of OS X 10.4.9 iSync didn't work anymore with my Sony Z520i.
    Neither Address Book or iCal wouldn't sync at all and I tried everything even a fresh erase and Install.
    Someone here on this forum told me to delete the folder SyncServices found in ~/library/Aplicatrion Support/SyncServices. I did that but it still didn't work so I replaced the same folder from the trash. I then launched iSync again, it did sync my address book only. I couldn't select the option for iCal in iSync anymore until I resynced my iCal in my Mac prefrences, after that I could select it in iSync but it would still fail.
    So I deleted two files that belong to iCal located in ~/library/Aplication Support/iCal the two files are sync.plist and syncState.plist
    When I tried it it worked perfectly iSync synced both address book and iCal and I have been testing it without any problems updating my address book and iCal for the last few days.
    It's 100% fixed :)
    17" Powerbook G4 Airport Express   Mac OS X (10.4.9)   1.67 GHz, 93.04 GB, 1GB RAM, 128 MB ATI 9700

    You only get the one hour difference if the Time Zone or Daylight saving setting is set incorrectly on your phone, or if you are viewing events before the last time the clocks changed (March), or after the next time the clocks change (October).

  • Batch Address Verification and Standardization using AV

    Hi,
    We would like to use EDQ AV for batch address verification and standardization. Can you please let us know the high level steps for this since i could only see the job for real time address verification and standardization.
    Can we use the address clean process used for real time address verification and standardization for batch as well. Do we have to use staged tables like how batch entity/contact deduplication uses or do we directly connect to the address table in siebel schema using a data source and do batch address verification and standardization by using the address clean process given for real time address verification and standardization in a new job.
    Thanks,
    Sukhesh

    Hi,
    When EDQ is attached to Siebel, batch address verification and cleansing tasks are instigated via Siebel's DQ Manager. You can set up a job template using the instructions in Section 5 of this document:
    http://www.oracle.com/technetwork/middleware/oedq/documentation/cdssiebel-1688412.pdf
    In the case of Siebel, 'batch' jobs in fact simply call the web service with however many records you scope into the batch run.
    For other purposes - i.e. when you want to run the EDQ-CDS Address Clean process on other sources of data, you simply need to bind in the source and target from/to the AddressClean data interface in EDQ and set up a job with these mappings. You can run this at the same time as running real-time address cleaning, provided you use a different Run Label.
    Regards,
    Mike

  • Address Book and Bookmarks

    I recently got an iBook G4 and I would like to share my address book and bookmarks for Safari from my iMac G5, so I have that same info on both computers. Is there an easy way to do that? I have an airport wireless network in my house so I use the dsl connection with both. Thanks!

    You could Export all your addresses from the one computer and import them onto the other computer. Just Highlight all your cards and click Export ~ You can save it to your Desktop and then email it to yourself on your other computer. Then, when you get the email on your other computer, open the email, and click on the vCard you've sent yourself. It will import all the cards to your address book.
    Margie

  • What tables store the email addresses for a distribution list?

    Can someone please tell me the table or tables used to store the email addresses for a distribution list
    I have a requirement in BW to send an email to a person who starts a process chain.   One to many people will be able to do this and the requirement is to have the email only go to the person who executes the Process chain.    I would like to dynamically maintain the distribution list in my job.

    Here is piece of code i used one of my program to fetch email address from distribution list
      if not soid-objnam is initial.
        call function 'SO_DLI_READ_API1'
          exporting
            dli_name                   = soid-objnam
            shared_dli                 = 'X'
          tables
            dli_entries                = i_distlist
          exceptions
            dli_not_exist              = 1
            operation_no_authorization = 2
            parameter_error            = 3
            x_error                    = 4
            others                     = 5.
        if sy-subrc ne 0.
        else.
          loop at i_distlist.
            if i_distlist-member_adr is initial.
              move i_distlist-member_nam to i_user-bapibname.
              call function 'BAPI_USER_GET_DETAIL'
                exporting
                  username = i_user-bapibname
                importing
                  address  = wa_address
                tables
                  return   = i_return.
              move wa_address-e_mail to wa_receiver-receiver.
              append wa_receiver to i_receiver.
            else.
              move i_distlist-member_adr to wa_receiver-receiver.
              append wa_receiver to i_receiver.
            endif.
          endloop.
        endif.

  • I have a new email address and updated it with my apple id/icloud and updated on my iPhone, but i'm getting a pop up to enter my password with my old email address listed for iCloud/Apple id.

    I have a new email address and updated my apple id/icloud  with the new address. I updated on my iPhone, but i'm keep getting a pop up to enter my password with my old email address listed for iCloud/Apple id.  How do I get it to go away?

    Did you create a NEW Apple ID or did you change the email address for your OLD Apple ID? This will affect how you update apps in the future.
    Anyway, go to Settings/iTunes&App Stores, log out, then log in with the new ID.

  • LYNC Server 2013 LS Address Book and Distribution List Expansion Web Service error - Event ID 62005

    Hi,
      Recently,  I found some of LS Address Book and Distribution List Expansion Web Service error from Lync 2013 Front  End Server, kindly advise help how to solve it. many thanks
    Distribution List Expansion Web Service failed to initialize.
    Exception: The server is not operational.
    Cause: Unexpected exception occurred during initialization.
    Resolution:
    Examine exception details in event to determine the resolution.
    Best Regards
    Thomas

    Hi,
    You can do the following steps to solve the issue:
    Please double check the Windows Firewall is turned off.
    Please check if the CMS replication update to the latest version.
    Make sure Lync Server update to the latest version.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Dynamic Distribution List not working!

    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."

    Hi,
    This would help you... Add RecipientContainer with the full domain name where recipients are and check...
    RecipientContainer
    Optional
    Microsoft.Exchange.Configuration.Tasks.OrganizationalUnitIdParameter
    The RecipientContainer parameter filters the recipients used to build the dynamic distribution group based on their location in Active Directory. The value of theRecipientContainer parameter
    can be the canonical name of an organizational unit (OU) or a domain. If you don't specify a value for the RecipientContainerparameter, the cmdlet will default to use the local container. This location is specified by using the OrganizationalUnit parameter.
    From: http://technet.microsoft.com/en-us/library/bb125127(v=exchg.150).aspx
    Blog |
    Get Your Exchange Powershell Tip of the Day from here
    Still doesn't work!
    I have done:
    [PS] C:\Windows\system32>New-DynamicDistributionGroup "Test3"-recipientcontainer "subdomain.domain.local" -RecipientFilter {((R
    ecipientType -eq 'MailUser') -and (Office -eq Office2))}
    Creates the DL, but no members...

  • How to create Exchange dynamic distribution list using multivalue extension custom attribute

    I am trying to create a dynamic distribution list using an ExtensionCustomAttribute.  I am in hybrid mode with Exchange 2013.  The syntax I have is this: 
    New-DynamicDistributionGroup -Name "DG_NH" -RecipientFilter {(ExtensionCustomAttribute2 -eq 'NH')} 
    This works correctly on-prem.  But hosted always results in an empty list.  I can see in dirsync the attribute is in the hosted environment, but for whatever reason, the distribution group gets created but always come up null.
    If I create a group looking at the single valued attributes, such as CustomAttribute6 -eq 'Y', it works correctly on-prem and hosted.  
    If anyone has any suggestions I would appreciate it.

    I don't think I provided enough information about the problem.  Let me add some and see if it makes sense.
    I have an Exchange 2013 on-premise configured in hybrid mode with Office365.  For testing purposes, I have 2 users, Joe and Steve, one with the mailbox on-prem, and the other with the mailbox in the cloud.  Each of them has CustomAttribute6 = 'Y'
    and ExtensionCustomAttribute2 = 'NH'. Dirsync shows these users and these attributes are synced between on-prem and cloud.
    Using on-prem Exchange powershell, I run the following command:
    New-DynamicDistributionGroup -Name "DG_NH" -RecipientFilter {((RecipientType -eq UserMailBox) -or (RecipientType -eq MailUser) -and (CustomAttribute6 -eq 'Y')} 
    This correctly finds the 2 users when I query for them as follows:
    $DDG = Get-DynamicDistributionGroup DG_NH
    Get-Recipient -RecipientPreviewFilter $DDG.RecipientFilter | FT alias
    So I then delete this DG, and recreate it this time looking at the multi-value attribute ExtensionCustomAttribute2, as follows:
    New-DynamicDistributionGroup -Name "DG_NH" -RecipientFilter {((RecipientType -eq UserMailBox) -or (RecipientType -eq MailUser) -and (ExtensionCustomAttribute2 -eq 'NH')} 
    Replaying the query above, I can see this also works fine and finds my two users.
    Next I open a new powershell and connect to Office 365 and repeat the process there.
    New-DynamicDistributionGroup -Name "DG_NH" -RecipientFilter {((RecipientType -eq UserMailBox) -or (RecipientType -eq MailUser) -and (CustomAttribute6 -eq 'Y')} 
    This correctly finds the 2 users when I query for them.
    And then delete the group and recreate it using the multi-value attribute:
    New-DynamicDistributionGroup -Name "DG_NH" -RecipientFilter {((RecipientType -eq UserMailBox) -or (RecipientType -eq MailUser) -and (ExtensionCustomAttribute2 -eq 'NH')} 
    When I run the query this time it produces no result.  Every test I try results in an empty group if I am using a multi-valued attribute in the search criteria in the cloud.  If I use single valued attribute, it works fine.
    I really need to be able to get multi-valued DDG's working in the cloud.  If anyone has done this and has any suggestions, I would appreciate seeing what you did.  And if this is the wrong forum to port this, if you can point me to a more suitable
    forum I will report there.
    Thanks,
    Richard

Maybe you are looking for

  • IP - Is it possible to call exit planning function from ABAP Report..

    Hi All, Greetings. Is it possible to call exit planning function from ABAP Report (t-code SE38) ? Or I mean is not limited only to be called from ABAP Report, perhaps from BSP / Web-Dynpro / Function Module. If somebody here has been doing it before,

  • Tidal vs Powershell

    Hi, Visited this one before with limited success but now its time to try again. Platform is TES 6.1.0.212 running on Solaris x86, CM is on RH linux, agent on windows server 2003. I'm attempting to automate some MS excel work via powershell. I have a

  • Crystal Report XI Release 2 (Version 11.5.8.826) startup is very slow

    Hello I have a problem that the crystal report software startup take 1 - 2 minutes. After crystal report is loaded, all queries and report are running fast and good. Running XP, SP2, 3GHZ, 2GB RAM. I have different PC with the same configuration. On

  • No left handed pane on itunes on my mac?

    When I plug my iphone into my computer, there is no left handed pane on itunes on my mac and thus my devices won't show up? Can't choose device to back up iphone 5?? I have the current version of itunes, have restarted both iphone and mac...help! B.

  • Can I change monitor setting?

    Im kinda new to the whole IMac thing. I used to have a G5 at my old place of employment but since I'm no longer there, I got a great deal on an IMac G3. I want to adjust my Adobe Gamma but I dont see any place I can tweak the contrast and brightness