Dynamic Distribution Groups not working with Office365 Mailboxes

Ok so my problem is this. I am creating new dynamic distribution lists based on office location with the option to look at the notes section in AD and add an additional office if a user needs to be on both lists.
We have recently started using Office365 for some users and they need to get the emails too.
When I create the group initially using:
New-DynamicDistributionGroup -Name "Location-London UK" -OrganizationalUnit "domain.net/Groups/Email Groups/Locations" -RecipientContainer "domain.net/Our Users" -RecipientFilter {(RecipientType -eq 'MailUser') -or (RecipientType
-eq 'UserMailbox') -and (Office -eq 'London') -or (Notes -eq 'London')}
It creates the group limiting to the Accounts with London as their office but it includes every Office365 mailbox we have also.
There is a DDG in our EMC for an office in Hong Kong but I am not aware of who created it.
Its filter says:
((((((RecipientType -eq 'MailUser') -or (RecipientType -eq 'UserMailbox'))) -and (Office -eq 'HongKong'))) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValue
-eq 'DiscoveryMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox')))
This group includes only the users with Hong Kong as well as Office365 users with Hong Kong as their office location
Ive tried to recreate this DG but cant as using Powershell still makes groups with the Office265 users in them.
The only way ive successfully created a London DG is by using ADSIedit to copy the msExchQueryFilter from Hong Kong to London and change the Office Name to London
Any help would be appreciated

For your recipient filter, use the following:
{((RecipientType -eq 'MailUser') -or (RecipientType -eq 'UserMailbox')) -and
((Office -eq 'London') -or (Notes -eq 'London'))}
See if that works ... that's effectively how the Hong Kong one is built.  Make sure you get the extra parentheses (I bolded them), they should make the difference.

Similar Messages

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

  • Smart Groups not working with keywords?

    I've gone through the various forum posts on Smart Groups (especially this one - http://discussions.apple.com/thread.jspa?messageID=8649078&#8649078) but still haven't found an answer to this problem.
    After importing my test files into my local iTunes install, I used the "Get Info" method to edit the metadata for those files. At this time, I put a series of keywords in the "grouping" field. I then uploaded these test files to our iTunes U site.
    When I search for those keywords on our site, I get the results that I expect to get. However, when I try to create a Smart Group based on any of those keywords, I get no results. I waited for a few days, hoping that the indexing would catch up and yield more search results - but that didn't seem to fix the problem. The documentation states that Smart Groups should work with keywords... so is there something I'm missing here?
    Any thoughts would be very helpful.

    Duncan, thanks for responding to me quickly.
    I'm confused where the keyword field is, though. I don't know of a keyword field using the "Get Info" method of editing the file's metadata on the local iTunes install, and the guide is unclear about where that field is or how to add information into it.
    On this page (http://deimos.apple.com/rsrc/doc/AppleEducation-iTunesUUsersGuide/UsingiTunesUSe arch/chapter10_section2.html), it mentions the following method for adding keywords for iTunes U:
    "To add additional keywords for iTunes U to search:
    1. Control-click the track where you want to add keywords, then choose Get Info from the shortcut menu that appears.
    2. Click the Info tab.
    3. Add keywords to the Grouping field. When searching your iTunes U site, after a track title, keywords in the Grouping field have the second-highest matching relevance.
    4. Click OK."
    This is the method that I've been using, since it seems to say that any words added to the "Grouping" field on the local install get read as keywords by iTunes U. Is there another way to add keywords to a file that I'm missing?

  • Dynamic record group not working when apostrophes are used

    Hi Everyone,
    I have developed a Form for the most part everything is working as expected. However, there is a search functionality that is giving me problems. The issue is that when the user enters search criteria for last_name that has an apostrophe (O'brian) the search lov doesn't get populated because the dynamic record group is not getting created when the string has an apostrophe (ie O'brian). I have a dynamic record group that takes the user's search criteria and populates an LOV on the screen with the records that matched their criteria.
    Here is the code that is behind my search button where the dynamic RG gets created. It works fine for all searches that don't contain an apostrophe. Btw, the Oracle Forms version is 10g.
    DECLARE
    p_where_debtor varchar2(2000);
    p_where_liab varchar2(2000);
    rg_id RecordGroup;
    v_query varchar2(2000) := null;
    rg_name varchar2(2000):= 'RG_LIAB_LST';
    errcode NUMBER;
    BEGIN
    IF :SEARCH.cd_nb is null and
    :SEARCH.cd_seq is null and
    :SEARCH.f_name is null and
    :SEARCH.l_name is null and
    :SEARCH.mi_name is null
    then
    display_message ('Search criteria must be entered');
    raise form_trigger_failure;
    END IF;
    v_query := 'SELECT last_name, first_name, middle_name, c_no, c_seq
    FROM TABLE_VW2 WHERE 1=1';
    /*Search criteria entered by user*/
    IF :SEARCH.l_name_srch IS NOT NULL THEN
    v_query := v_query||' AND UPPER(last_name) LIKE '''||UPPER(:SEARCH.l_name)||'%''';
    END IF;
    IF :SEARCH.f_name_srch IS NOT NULL THEN
    v_query := v_query||' AND UPPER(first_name) LIKE '''||UPPER(:SEARCH.f_name)||'%''';
    END IF;
    IF :SEARCH.mi_srch IS NOT NULL THEN
    v_query := v_query||' AND UPPER(middle_name) LIKE '''||UPPER(:SEARCH.mi_name)||'%''';
    END IF;
    IF :SEARCH.cdcs_nbr_srch IS NOT NULL THEN
    v_query := v_query||' AND UPPER(c_no) LIKE '''||UPPER(:SEARCH.cd_nb)||'%''';
    END IF;
    IF :SEARCH.cdcs_seq_srch IS NOT NULL THEN
    v_query := v_query||' AND UPPER(c_seq) LIKE '''||UPPER(:SEARCH.cd_seq)||'%''';
    END IF;
    /*Make sure record group doesn't exisit*/
    rg_id := Find_Group(rg_name);
    /*If it doesn't exist then create record group*/
    IF id_null(rg_id) THEN
    rg_id:= create_group_from_query(rg_name,v_query);
    END IF;
    IF NOT id_null (rg_id) THEN
    delete_group (rg_id);
    rg_id:= create_group_from_query(rg_name, v_query);
    END IF;
    errcode := Populate_Group(rg_id);
    Any help would be greatly appreciated.
    Thanks,
    Adrian

    For every item where an apostroph can occur, do a
    REPLACE(:BLOCK.ITEM, '''', '''''');

  • Group ownership of Distribution Group not working

    Hi,
    We recently migrated from Exchange 2007 to 2013 CU2. We have various security groups with permissions to edit various distribution lists; this is no longer working. I've already researched the problem and I understand two things are necessary for a
    user to have permission to edit a distribution list:
    1. User must have membership in the My Distribution Groups and My Distro Groups Membership roles. Already done.
    2. User must be an owner of the distribution group.  
    The problem comes with the ownership. I'm assigning ownership of the distribution list to a security group, of which my test user is a member. Per
    this article, groups can own groups again as of 2013 CU1.
    If I directly assign a user ownership of the group, they can edit membership without issue, which means item #1 is satisfied. But they are not receiving ownership by way of membership in the group that owns the distribution list. Or put another way, their
    group membership is not granting them ownership of the group as it should.
    Any thoughts? Spent a good hour searching and can't come up with anything.
    Thanks,
    James

    Hi -
    That is correct, and is a problem with dozens of existing distribution groups.
    For testing purposes I just did the following:
    1. Created a new distribution group "Test Distro Group"
    2. Created a new mail-enabled security group "Test Distro Group Owners"
    3. Ran Set-DistributionGroup -Identity "Test Distro Group" -ManagedBy "Test Distro Group Owners"
    4. Confirmed ownership via the shell:
    Get-DistributionGroup -Identity "Test Distro Group" | fl
    GroupType                                 : Universal
    SamAccountName                       : Test Distro Group
    BypassNestedModerationEnabled  : False
    ManagedBy                                 : {contoso.com/Users/Test Distro Group Owners}
    5. Confirmed ownership via ECP:
    6. Added a test user "_Sample Teacher" to the "Test Distro Group Owners" group. Confirmed membership via ECP:
    7. Logged into OWA as "_Sample Teacher," went to Options, then Groups. "Test Distro Group Owners" is shown as a group that the user belongs to, however no groups are shown under "distribution groups I own."
    8. If I add "_Sample Teacher" directly as an owner of "Test Distro Group," the group appears as expected as an owned group.
    So in short...the user is a member of the security group, the security group owns distribution group; the user should then be an owner of the distro group via membership in the security group, however this is not working.
    Thanks for any help you can provide. I'm not sure where to go next.
    James

  • Database mail configuration is not working with office365

    Hi there!
    I' looking for some help debugging a blocking error in our DEV environment.
    We're currently using Windows 2008 R2 Standard, with IIS 7.5 and MS SQL Server 2012 Standard.
    We're experiencing troubles while trying to use database mail in conjunction with Office365 SMTP.
    We've generated our self-signed certificate, via IIS, and configured SMTP Virtual Relay Server with local (machine-name) and remote domain, following a step-by-step tutorial from configureoffice365.com.
    We've also checked at the original MSDN tutorial, but it's been of little use (at least for us).
    We would like to use our Office365 SMTP server to send out notifications and we're currently using Office365 working credentials to try the SMTP authentication, but we're stuck with this error (x is used to hide sensible data):
    OutboundConnectionCommand [12/May/2014:13:35:08 +0100] "STARTTLS - SMTP" 0 8
    OutboundConnectionResponse [12/May/2014:13:35:08 +0100] "- -?220 2.0.0 SMTP server ready SMTP" 0 27
    OutboundConnectionCommand [12/May/2014:13:35:08 +0100] "EHLO -?SQLDEVxxxxx SMTP" 0 4
    OutboundConnectionResponse [12/May/2014:13:35:08 +0100] "- -?250-xxxxx.outlook.office365.com Hello [x.x.x.x] SMTP" 0 58
    OutboundConnectionCommand [12/May/2014:13:35:08 +0100] "AUTH - SMTP" 0 4
    OutboundConnectionResponse [12/May/2014:13:35:08 +0100] "- -?334 xxxxx SMTP" 0 16
    OutboundConnectionResponse [12/May/2014:13:35:14 +0100] "- -?535 5.7.3
    Authentication unsuccessful SMTP" 0 37
    Any idea or suggestion?
    Thank you.

    Hi giovannizuccaro,
    According to your description, when you configure database mail in your SQL Server Management Studio,
     Please note that you enter the server to send to as localhost and the email address as the email you have on the office 365 Exchange online for the same account you used to configure the delivery configuration of the local SMTP server. And
    you should choose anonymous authentication for SMTP authentication. Once finished the configuration, you can test the email sending, check if you are able to send emails to any external recipient using you Exchange online.
    For more information, there is detail about how to configure SQL Database mail so send emails using Office 365 (Exchange Online):
    http://blogs.msdn.com/b/momalek/archive/2013/02/25/how-to-configure-sql-database-mail-so-send-emails-using-office-365-exchange-online-a-walkthrough.aspx
    If there are still some errors, I recommend you post your error message on the Office 365 forums (https://community.office365.com/en-us/f/default.aspx ), It is appropriate and more experts
    will assist you.
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • MySQL 5.0 Standard distribution is not working with Xsan on my Xserve.

    Hello,
    until now we have always used on our Xservers the MySQL 5.0 Standard distribution downloadable from www.mysql.com (thus not the MySQL 4.1 that is shipped with Mac OS X 10.4 Server) with its datadir located on an internal disk of the Xserve. Since we have recently set up our Xsan we should now migrate the MySQL datadir to a directory on our 4 Tb Xsan volume, but doing so MySQL 5.0 no longer starts and even a myisamchk complains that the FYI tables are not MyIsam tables (but they are, I just copied the whole "local" datadir to the Xsan volume).
    I then tried to configure the "standard" MySQL 4.1 that Apple ships with Mac OS X Server so that it uses the datadir on the Xsan volume and it starts with no problems, but we need MySQL 5.0! The problem seems to be therefore an incompatibility between the MySQLCOM distribution and the Xsan volumes.
    Our setup is: an Xserve G5 dual 2 GHz running Mac OS X 10.4.8 and Xsan 1.4.1, MySQL 5.0.26,.
    I wish to know if anyone else has encountered similar problems and how this has been eventually fixed.
    Thank you, Fabrizio

    Well, we actually have quite a few reasons to host the MySQL data on Xsan:
    - concurrent access: among other data, the Xsan should also store some MySQL databases actually used by a single web server hosting many virtual hosts and user-managed folders that we want to "split" on two Xserves for both load balancing and failover purposes. The idea is to keep the configuration for all virtual hosts and user folders on both servers activating only one half of them per server, so that in case one server fails the other can easily take its place.
    - space: we have more than 4TB on Xsan, versus the 250 GB mirrored disks of the Xserve. Our databases actually occupy few gigabytes, but they will surely grow in the future.
    - money: our company paid more than 100.000 euros for 14 Xserve, 2 Xserve Raid units and 10 Xsan licenses, and we want to use them as much as possible.
    - database: performance is not a big concern for us while affordability is mandatory. BTW, one of the larger and most frequently used databases is composed by large blobs of data (it's used to store PDF files).
    We purchased all these Apple server products because we always loved Macs and their OS: I still think that Mac OS X is the perfect OS for desktops/notebooks and Mac OS X Server/Xsan running on the Xserve platform are a good and relatively cheap choice for video editing and HPC. But while time goes by and more and more (often inexplicable) problems occur on our Xservers under stress, I also guess that the Apple server line is not the better choice for what we need to do: web hosting, email and authentication services, DHCP, network traffic analysis, and so on, for a big university.
    We had always used Sun servers with Solaris up to few years ago and they never gave us a single problem after many years of use (and misuse), then Mac OS X 10.0.4 was relased...

  • Help with dynamic distribution group exclusion

    Hi all,
    Having a strange trouble with a dynamic distribution group filtering on the user being a member of a particular group
    Recipient Filter  is:
    ((((((((RecipientType -eq 'UserMailbox') -and (-not(Title -like '[]*')))) -and (MemberOfGroup -ne 'CN =ExcludeFromMoitorigList,OU=Mail Redirect,OU=System Accounts,OU=New Objects,DC=test,DC=local'))) -and (-not(UserAccountControl -eq 'AccountDisabled, NormalAccount, DoNotExpirePassword')))) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox')))
    If I make a preview of this distribution list I get expected result. Users included in ExcludeFromMoitorigList group don't appear. But they continue receive emails sent to dynamic distribution group.
    Any help is much appreciated

    I'm not sure what all of the settings you are adding are for, but operating under the assumption that they are necessary, try this:
    ((((RecipientType -eq 'UserMailbox') -and (-not(Title -like '[]*')) -and (-not(MemberOfGroup -eq 'CN =ExcludeFromMoitorigList,OU=Mail Redirect,OU=System Accounts,OU=New Objects,DC=test,DC=local')))) -and (-not(UserAccountControl -eq 'AccountDisabled, NormalAccount, DoNotExpirePassword')))
    If that doesn't work, try this:
    ((RecipientType -eq 'UserMailbox') -and (-not(Title -like '[]*')) -and (-not(MemberOfGroup -eq 'CN =ExcludeFromMoitorigList,OU=Mail Redirect,OU=System Accounts,OU=New Objects,DC=test,DC=local')) -and (-not(UserAccountControl -eq 'AccountDisabled, NormalAccount, DoNotExpirePassword')))
    FYI, the reason for those suggestions is because I got this working on Exchange 2013 running on Server 2012 Datacenter by taking the existing RecipientFilter and adding the -not MemberOfGroup section, but noticed that all of this was then duplicated:
    -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'PublicFolderMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox'))
    As such, I re-created it without that, and that's what I've done with your string.  I also changed the -ne to a -not(-eq) and in the second example, got rid of some extra parenthesis that I'm not sure you need.
    Also, note that in my working scenario, I used this command and put the filter I was setting where I have indicated <filter> (I left the double quotes in the command):
    Set-DynamicDistributionGroup -Identity <Group> -RecipientFilter "<filter>"

  • Dynamic Distribution Group on HOSTED exchange 2010 not setting up properly

    Hi all,
    We have a hosted exchange 2010, which prevents us from using the EMC.
    I want to create a simple dynamic distribution group for every staff member in the organization but am facing a problem. I use the following command:
    New-DynamicDistributionGroup -Organization "organizationname" -IncludedRecipients MailboxUsers -Name "Office"
    This appears to work according to shell. In addition,
    Get-DynamicDistributionGroup -Organization "organizationname"
    DOES come up with "office" as a listing (though the "Managed by" field is empty. Should I care?)
    However:
    sending to that address creates a bounce-back "no such email address"
    a look in AD shows that the object has been created somewhat incorrectly
    It appears that while a group is nominatively created no email address is created attached to it (which should be [email protected]).
    I am by no means a shell expert and have been bumping my head for a few days now, any suggestion would be great!
    Thanks in advance,
    Rodolphe

    Hey, thanks for your reply Willard.
    Everything looks correct:
    name: Office
    Alias: Office
    PrimarySmtpAddress: [email protected]
    EmailAddressPolicyEnabled: False
    The bounceback now is quoting a permissions issue
    #< #5.7.1 smtp;550 5.7.1 RESOLVER.RST.AuthRequired; authentication required> #SMTP#
    This actually gives me the clues to resolve:
    When creating a distribution group through the EMC, by default it is "closed" so only members of that DDL can send to it. I have tested this by sending to it from an internal address and it does go through.
    Set-DynamicDistributionGroup <name> -RequireSenderAuthenticationEnabled $False
    resolves the issue to allow external senders.
    Thanks for your help Willard, your question was enough to get me going in the right direction. Hopefully some other newbie will find this useful in the future.

  • Google drive does not work with specific group but works with all users group!!

    Hi,
    Why Google drive does not work with specific group but works with all users group?
    My rule :  Internal > external > all users = works fine
    But
                   Internal > external > A group = not working !!

    Hi,
    if you require user authentication in Firewall policy rules, the clients must bei Webproxy clients (for HTTP / HTTPS) or TMG clients (for TCP/UDP):
    http://technet.microsoft.com/en-us/library/bb794762.aspx
    regards Marc Grote aka Jens Baier - www.it-training-grote.de - www.forefront-tmg.de - www.galileocomputing.de/3276?GPP=MarcGrote

  • Dynamic Distribution Group - Moderator approval fails

    hi,
    (On premise and office365 Exchange)
    we use the above in our organization. we have some dynamic groups created. I have a moderator for a couple of groups. when a user sends an email to one of the group that has a moderator, the latter gets an email to either approve or reject the message. when
    he/she clicks on the accept button they get the following error:
    Delivery has failed to these recipients or groups:
    Microsoft Exchange Approval Assistant
    Your message wasn't delivered because the recipient's email provider rejected it.
    Diagnostic information for administrators:
    Generating server: DB4PR07MB0701.eurprd07.prod.outlook.com
    SystemMailbox{d57a4133-7e21-486e-9917-f7fb70dc2cdb}@XXXXXX.onmicrosoft.com
    Remote Server returned '< #5.7.12 smtp;550 5.7.12 RESOLVER.RST.SenderAuthenticated; Delivery restriction check failed as sender not authenticated>'
    Original message headers:
    Received: from AMXPR07CXXXXX.eurprd07.prod.outlook.com (10.242.64.XX) by
    DB4PR07XXXXX.eurprd07.prod.outlook.com (10.141.45.XX) with Microsoft SMTP
    Server (TLS) id 15.1.6.9; Fri, 31 Oct 2014 14:20:41 +0000
    Received: from DB3FFO11XXXXX.protection.gbl (2a01:111:f400:7e04::130) by
    AMXPR07CXXXXX.outlook.office365.com (2a01:111:e400:1000::20) with Microsoft
    SMTP Server (TLS) id 15.1.11.14 via Frontend Transport; Fri, 31 Oct 2014
    14:20:41 +0000
    Received: from XXXXX.XXXXX.co.ke (197.220.102.XXX) by
    DB3FFO11FD053.mail.protection.outlook.com (10.47.217.XXX) with Microsoft SMTP
    Server (TLS) id 15.0.1049.20 via Frontend Transport; Fri, 31 Oct 2014
    14:20:40 +0000
    Received: from XXXXX.XXXXX.co.ke (192.168.11.XXX) by
    XXXXX.XXXX.co.ke (192.168.11.XXX) with Microsoft SMTP Server (TLS) id
    15.0.847.32; Fri, 31 Oct 2014 17:20:37 +0300
    Received: from XXXXX.XXXXX.co.ke ([fe80::4b9:1080:7301:f8be]) by
    XXXX.XXXXX.co.ke ([fe80::4b9:1080:7301:f8be%15]) with mapi id
    15.00.0847.xxx; Fri, 31 Oct 2014 17:20:37 +0300
    From: "XXXXX XXXXX " <[email protected]>
    To: Microsoft Exchange Approval Assistant
            <SystemMailbox{d57a4133-7e21-486e-9917-f7fb70dc2cdb}@XXXXX.onmicrosoft.com>
    Subject: Approve: * QUOTE OF THE DAY *
    Thread-Topic: * QUOTE OF THE DAY *
    Thread-Index: Ac/1FciNlxJwVzCBTJKjqDyb/OnY+gAAAOtxAAAChkA=
    Date: Fri, 31 Oct 2014 14:20:37 +0000
    Message-ID: <[email protected]>
    Accept-Language: en-US
    Content-Language: en-US
    X-MS-Has-Attach:
    X-MS-TNEF-Correlator:
    x-originating-ip: [192.168.1.XXX]
    Content-Type: text/plain; charset="us-ascii"
    Content-Transfer-Encoding: quoted-printable
    MIME-Version: 1.0
    Return-Path: [email protected]
    X-EOPAttributedMessage: 0
    X-Forefront-Antispam-Report: CIP:197.220.102.xxx;CTRY:KE;IPV:NLI;EFV:NLI;
    X-OriginatorOrg: XXXXX.onmicrosoft.com
    X-Microsoft-Antispam: UriScan:;
    X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:DB4PR07xxxxx;
    Kind Regards, Khuzema R.

    Hi Khuzema,
    Please confirm if your Dynamic Distribution Group is created on-promise and the moderator is on the Office365 Exchange.
    If the Dynamic Distribution Group and the moderator are in different Exchange servers: On-premise and Online, please open the Dynamic Distribution Group in EAC, then check
    Senders inside and outside of my organization in delivery management to have a try.
    If it doesn’t work, I suggest we can change a moderator who is in the same mailbox server with the Dynamic Distribution Group to check whether the issue persists.
    Regards,
    Winnie Liang
    TechNet Community Support

  • Create/Edit "Custom Attributes" in Dynamic Distribution Groups

    Hi,
    I wanna create a Dynamic Distribution Group based on the users "title" and "company".
    I've noticed that there are 15 "Custom Attributes" that I can edit in someway, I guess via PowerShell?
    So what is the easiest way to accomplice this?

    Hi,
    Agree with the above suggestion, you can also bulk change the custom attributes:
    Get-Mailbox -ResultSize Unlimited -Database Execs | Set-Mailbox -CustomAttribute1 “title”
    http://dougg.co.nz/2012/05/01/bulk-setting-exchange-2010-custom-attributes/
    to Edit Custom Attributes:
    get-mailbox -filter {customattribute1 -eq ""} | set-mailbox -customattribute1 = "<value>"
    And here is a reference about Create/Edit "Custom Attributes" in Dynamic Distribution Groups:
    http://windowsitpro.com/exchange-server-2010/exchange-2010-sp2-value-custom-attributes
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make
    sure that you completely understand the risk before retrieving any suggestions from the above link.
    Best regards,
    Angela Shi
    TechNet Community Support

  • Edit existing Dynamic Distribution Group

    I'm running Exchange 2007 RTM
    I have an existing Dynamic Distribution Group "All Staff" - here's the filter taken from 'Properties'
    (&(!cn=SystemMailbox{*})(&(&(& (mailnickname=*) (| (&(objectCategory=person)(objectClass=user)(|(homeMDB=*)(msExchHomeServerName=*))) )))))
    My question is it possible to EDIT the group to exclude a user? If so how?

    You can edit the dynamic distribution list in EMS and add to the recipient an exclusion based on a value of an attribute (for example a CustomAttribute). 
    first get your current recipient filter with 
    Get-DynamicDistributionGroup dl_dyn_test | fl recipientfilter
    in this example the filter is set to include everything with a CustomAttribute11 value of "plop":
    ((((((((CustomAttribute11 -eq 'plop') -and (Alias -
    ne $null))) -and (-not(Name -like 'SystemMailbox{*'
    )))) -and (-not(Name -like 'CAS_{*')))) -and (-not(
    Name -like 'SystemMailbox{*')) -and (-not(Name -lik
    e 'CAS_{*')))
    lets say we want to exclude the recipients with a CustomAttribute12 value "flop"; we would have to add "-and (-not(CustomAttribute12 -eq 'flop'))" to our filter, making it:
    ((((((((((((((CustomAttribute11 -eq 'plop') -an
    d (-not(CustomAttribute12 -eq 'flop')))) -and (
    Alias -ne $null))) -and (-not(Name -like 'Syste
    mMailbox{*')))) -and (-not(Name -like 'CAS_{*')
    ))) -and (-not(Name -like 'SystemMailbox{*'))))
     -and (-not(Name -like 'CAS_{*')))) -and (-not(
    Name -like 'SystemMailbox{*')) -and (-not(Name
    -like 'CAS_{*')))
    We can write this back to our existing DynDL with the following command:
    Get-DynamicDistributionGroup dl_dyn_test | Set-DynamicDistributionGroup -recipientfilter {<recipientfilter>}
    !!! do not forget the "{}" around the filter value !!!
    So our command becomes: 
    Get-DynamicDistributionGroup dl_dyn_test | Set-DynamicDistributionGroup -recipientfilter {((((((((CustomAttribute11 -eq 'plop') -and (-not(CustomAttribute12 -eq 'flop')) -and (Alias -ne $null))) -and (-not(Name -like 'SystemMailbox{*')))) -and (-not(Name -like 'CAS_{*')))) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')))}
    After this executes you can use the previous command again to read the value of recipientFilter attribute and verify the change. You can check that the DynDL is working properly by clicking  on the Preview button on the Filter tab in the DynDL properties
    window in EMC, and verifyng that the excluded recipients are not present in the list.

  • Regarding Dynamic distribution Group filtering! - URGENT HELP

    Hello Friends,
    We have some employess in our company having primary SMTP address as
    [email protected] as well as [email protected] as alias name.
    I want to create Dynamic distribution group using recipient filter option.. I have tried various option.. nothing is worked out. can you please someone help on how to do this?
    NOTE: I can able to filter using EMC filter : using "emailadresses" + "contains" @company2.com.......
    Karthick

    Your requirement is unclear. reply back with what you are actually looking for!
    if you want to use -RecipientFilter to Create/Manage Dynamic Distribution Groups then below are the few links which has the information about the values that you may use for -RecipientFilter
    Filterable properties for the -RecipientFilter parameter
    Filters
    in recipient Shell commands
    Using
    PowerShell to Manage Dynamic Distribution Groups and Recipient Filters in Exchange Server
    Create
    Dynamic Distribution Groups Using Customised Filters
    M.P.K ~ ( Exchange | 2003/2007/2010/E15(2013)) ~~ Please remember to click “Vote As Helpful" if it really helps and "Mark as Answer” if it answers your question, “Unmark as Answer” if a marked post does not actually answer your question. ~~ This
    Information is provided is "AS IS" and confers NO Rights!!

  • Create dynamic distribution group from 2 or more OU ?

    How I can create Dynamic distribution group from 2 or more OU ?
    I tried modified solution from this post:
    http://social.technet.microsoft.com/Forums/office/en-US/11a338b9-dbca-4378-9cda-4590a5b8d0f7/exclude-specific-ou-or-user-from-dynamic-distribution-groups?forum=exchangesvrgenerallegacy
    but I'm not sure will this work.

    Hi,
    I have some tests in my environment using Exchange 2013. I use the following cmdlet to create a dynamic distribution group through multiple OUs, but it can't work as I expect.
    New-DynamicDistributionGroup -Name "Users with mobile phones" -Alias "usermobile" -RecipientFilter{(((recipienttype -eq 'usermailbox') -and (MobilePhone -ne $null) -and ((RecipientContainer -eq 'contoso.com/users') -or (RecipientContainer -eq 'contoso.com/test
    OU'))) )}
    Actually, we have a dedicated support team regarding the Microsoft Scripts. I recommend you ask your question on our Microsoft Scripts forum which is staffed by more experts specializing in this kind of problems. Thanks for your understanding.
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?category=scripting
    Hope it helps.
    Best regards,
    Amy Wang
    TechNet Community Support

Maybe you are looking for

  • Problem with Date Parameter

    Hi I am new to reporting services/report designer but have created a number of simple reports with Parameters using data from queries that have worked but I have a problem with this using Date and Time.  I am using MS Visual Studio 2008 (BIDS) and ou

  • (Panic Report???)   my macbook told me to hold the power button down (code below)

    Can someone please look at this and possibly tell me whats going on????? Interval Since Last Panic Report:  60753 sec Panics Since Last Report:          1 Anonymous UUID:                    A968FA4A-FEAD-4CBB-AD82-90C3BB55D0D1 Sat May  7 23:35:50 201

  • BI-Purchasing reports help

    Hello, I am tasked on implementing standard BI reports for Purchasing in SAP.  Can anyone in the forum provide me details of any standard BI report that are relevant to Purchasing? Any links, documents and guides that will help me on implementing thi

  • How to write on a new page  ?

    Sorry for my English When i try to open a new page , I can't write anything because there is any text field . I must add one myself but when I do that , if I copy/paste a long text from an other source to Pages , a long part of the the text disapears

  • Color correction: camera oops

    I have some footage shot indoors when the camera was correctly white-balanced (~3200K). I have other footage shot indoors when the camera was white-balanced for outside (~5600k). So it all looks kinda yellow. The "auto balance" feature in Color does


HashFlare