Command to Modify Distribution Group

Dear All
Here i have an scenario 
I have a distribution group called Messaging Team
I have 10 members in that distribution group 
If one user who is member of distribution group sends an announcement to the same distribution group  he should not get this email in his inbox.
I know this is the default behavior of the distribution group it works . But there is a work around for this to setup filters in recipient shell commands.
I want to know the command to setup the filter for the distribution group when the sender sends the email who is member of distribution group he should not get the message.
Any help is highly appreciated.
Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com Thanks Sathish (MVP)

Hi Winnie
I completely understand this is the default behavior of the distribution group it works . But im looking for a  work
around for this to setup filters  through recipient shell commands.
Source of information
https://social.technet.microsoft.com/Forums/exchange/en-US/b91fc300-d5d5-41e0-8334-6df050a7c111/i-get-a-copy-of-all-emails-i-send-to-a-distribution-group-if-im-a-member?forum=exchange2010
Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com Thanks Sathish (MVP)
Hi,
Based on my knowledge, the recipient filter can be used to create distribution group. I don't know whether the recipient filter can be used to filter message recipients during the message sending or transport. And there is no reference for this workaround.
There is no feature in Exchange to achieve your requirement directly. It is a requirement for all distribution groups when any group members send messages to the group. Maybe we can use codes to send message, then filter the recipients based on the distribution
group to have a try.
Regards,
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
Winnie Liang
TechNet Community Support

Similar Messages

  • Distribution Group manager can't modify group

    Setup
    MS Exchange 2010 version 14.3 (Build 123.4)
    Distribution Group is a Mail Universal Distribution which has less than 20 members total
    There are three managers in the "Managed By" listing.  Of these two can modify the list, the third cannot.  When the third manager tries to modify the list they get the following error:
    The Public Group cannot be displayed.  The connection to Microsoft Exchange is unavailable.  Outlook must be online or connected to complete this action.
    Note: The user is connected to the Exchange environment as evidenced by the "Connected to Microsoft Exchange" in the lower right portion of his Outlook 2010 window.  He is also hardwired into the network,
    ie no wireless connection.  He tried the going in through OWA and got the same error as above.  
    Any ideas on what I can check to see why this manager cannot modify the list whereas the other two can? 
    nc

    Hi ncouch55,
    If there are multiple GCs in organization, We could refer to the following link to choose the closest GC for the specific user:
    1). Click Start, and then click Run.
    2). In the Open box, type regedit.exe, and then click OK.
    3). Locate and then click the following key in the registry:
    HKEY_CURRENT_USER\Software\Microsoft\Exchange\Exchange Provider
    Note You may have to create the registry path.
    4). On the Edit menu, click Add Value, and then add the following registry value:
    Value name: GC Server
    Data type: REG_SZ (string)
    Value data: the FQDN of the closest GC server
    5). Quit Registry Editor.
    If the issue persist, we could clear manager on distribution group and re-grant permission to three manager.
    If there are any questions regarding this issue, please be free to let me know. 
    Best Regard,
    Jim

  • Distribution group not showing up in Exchange 2007 GAL

    Hello,
    We have AD running on a 2003 R2 SP2 server
    We have Exchange 2007 running on a 2003 R2 SP2 server on the same domain.
    I put a distribution group (all staff) on the active directory server.    I can e-mail to [email protected] and it goes to everyone I put in that group no problem.   However if I do check name, allstaff isn't listed, I have to go to contacts and drop down to find that distribution group (under groups).   How do I get it into the global address list so it shows for anyone pressing alt K or checkname along with other members of our domain - I don't want them to have to drop down under the contacts item in outlook to go to groups to find it.
    Thanks

    Thanks - I don't think the regen of the address book is really the key but modifying the distribution group in AD after you create it in EMC.   I had regened the OAB a few times since last friday but the allstaff was only available under groups in outlook.   Maintenance runs every morning at 5AM and that didn't update the group into lookup in outlook.   It seems to be the broken AD interface between exchange 2007 and windows 2003.   You used to be able to see all exchange data for a user or group in AD however now part of it is in Exchange 2007 Management console and some is in AD users and computers.  
    THis is just one more item in my opinion along with the lack of gui control in exchange 2007 that displays the half baked creation that is Exchange 2007.   Is the next version of WIndows Server going to require all DOS commands like Exchange 2007 does to do any AD work?   Gussy it up with a fancy name like "POWERSHELL" but it is just another way of saying DOS to me.   Pretty sure PCs became more popular with GUI interfaces.    I used to be an MS FAN (not the same as fanboy who thinks they can do no wrong) but things at MS have taken a SERIOUS turn down hill as of late
    Vista - incredibly bad performance - no such issue with WIndows 95, 98, 2000, XP - and then they claimed it was drivers, then it was third party apps such as AV or firewalls - 5 months later they finally admit as people set up boxes with all the extras turned off with identical hardware and the latest drivers - hmm XP blows the doors off vista for file copy performance - can't imagine why sales suck for business clients and Dell had to start selling XP again.
    BTW - I tried their patch for performance - it actually decreased disk to disk performance on the same box while increasing performance by 20% in network copys however since network performance is up to 500% slower than XP that 20% increase doesn't really help enough to offset internal performance slow downs - here is a tip MS - strip out the DRM scanning and you'll get your performance back.
    Exchange 2007 - ESM worked great in 2003, 2000.   2007 we bring you POWERSHELL known 20 years ago as DOS.   Much easier to write scripts like - ## AutoDisco for EWS
    [array]$SCPCurrent = Get-ClientAccessServer
    $autodiscoResponse = "<Autodiscover xmlns=`"http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006`">"
    `
    + " <Request>"`
    + " <EMailAddress>" + $siSIDToSearch.WindowsEmailAddress + "</EMailAddress>"`
    + " <AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema>"`
    + " </Request>"`
    + "</Autodiscover>"
    $strRootURI = $SCPCurrent[0].AutoDiscoverServiceInternalUri.absoluteuri
    $WDRequest = [System.Net.WebRequest]::Create($strRootURI)
    $WDRequest.ContentType = "text/xml"
    $WDRequest.Headers.Add("Translate", "F")
    $WDRequest.Method = "Post"
    $WDRequest.UseDefaultCredentials = $True
    $bytes = [System.Text.Encoding]::UTF8.GetBytes($autodiscoResponse)
    $WDRequest.ContentLength = $bytes.Length
    $RequestStream = $WDRequest.GetRequestStream()
    $RequestStream.Write($bytes, 0, $bytes.Length)
    $RequestStream.Close()
    $WDResponse = $WDRequest.GetResponse()
    $ResponseStream = $WDResponse.GetResponseStream()
    $ResponseXmlDoc = new-object System.Xml.XmlDocument
    $ResponseXmlDoc.Load($ResponseStream)
    $EWSNodes = @($ResponseXmlDoc.getElementsByTagName("ASUrl"))
    if ($EWSNodes.length -ne 0){
    $ewsURL = $EWSNodes[0].'#text'
    than just clickin in Exchange System Manager and going to mailbox management like you had to in 2003.   Whew glad that trudgery is gone!   In just 20 lines I can do what I was forced to do in a couple of mouse clicks in the old version - happy days are finally here.
    WM6 - the BT stack was horrible in PPC2003, WM5 it was still bad but we've made it intolerable in WM6 - and we've made sure you can't get in touch with anyone at MS to point out these issues.
    Office 2007 - Gone are all those customizable menus that made your job easy - we've locked them down because we didn't have enough time to fix them after we scrapped our original ribbons interface - we tell you they are locked for security reasons but we'll bring it back as a new feature in the next version of Office.
    Thanks for letting me dump on the *** coming from MS these days - if their surveys actually let you give open feedback it would be great but their surveys about products are more like -
    Would you like to give feedback about VIsta?
    Question 1 -
    Do you think Vista is
    a more colorful
    b more intuitive
    c more visually stimulating
    Question 2
    Do you think the menu bar
    a Has better icons
    b Has better fonts
    c Looks more user friendly
    A real question about my Vista experience would be
    Question 1
    What did you think was better about Vista
    Question 2
    What did you think needs fixing in Vista
    Question 3
    Any additional comments
    MS is determined not to let in any info that might delay releases or improve their products.

  • Exchange 2010 Dynamic Distribution Group - RecipientContainer ignored

    Maybe someone will be able to help me with this...  I am trying to create DDGs for my organization but it seems the "RecipientContainer" is being ignored.  I have reorganized AD to include a top level OU called "Active Employees"
    and within that are sub-OUs for each department.  I also have a top level OU for "Disabled Accounts" and users in those OUs are ending up on my DDG.  Is this a known issue with Exchange 2010?
    First I had created the DDG in EMC and everything looked good.  I set the Recipient Container on the Filter tab by using the browse button and selecting mydomain.local\Active Employees, and then selected "Users with Exchange Mailboxes". 
    On the Conditions tab I left everything blank and when I clicked on Preview it returned the list of users I expected to see.  After sending a test email and receiving an NDR from an email contact (not on the preview list) I realized something was
    wrong.
    At this point I found out how to query the group members using the shell and saw that all users in the entire domain were being put into the group.  To resolve this I added a Condition for Company name and then tediously updated the field for each user
    in AD.  After querying the group from the shell again the results looked a little better - it was actually only pulling users with the correct "Company" in AD.  The problem is it still seems to be ignoring the RecipientContainer parameter
    and querying the entire domain instead of my Active Employees OU.
    I have reproduced the same results whether creating the DDG from EMC or from the Shell.  When I try to use the Set-DynamicDistributionGroup cmdlet to update the recipient container it warns me that the commad was successful but nothing has been modified. 
    This was supposed to be a simple solution for keeping our distribution groups up to date - maybe I should've known better...

    Hello Dave,
    Thanks for the post. Let me tell you how I was able to go ahead and resolve the issue in my lab.
    I had created a OU called Enabled users
    Then I created Two different Child Ou's : Disabledusersou1 and DisabledUsersou2
    So if I open the ADUC my OU would look something like this
    EnabledUsers
    Disbaledusersou1
              Disbaledusersou2
    Now I Had created users on all the above Ou's. When I created a Dynamicdistributiongroup with the recipientcontainer as EnabledUsers, it picked up users even from Disabledusersou1 and Disabledusersou2. Then I set the
    customattribute1 to test in the DynamicDistributiongroup.
    Then I went ahead and ran the following command
    Get-mailbox | {$_.Organizationalunit -like "domain.local\EnabledUsers"}
    The above command listed only the users from the enabledusers Ou. Now the next step was to go ahead and add the customattribute1 to test on the Users in the EnabledUsers OU. So I ran the following command
    Get-mailbox | {$_.Organizationalunit -like "domain.local\EnabledUsers"} | set-mailbox -customattribute1 test
    After I ran the above command. I waited for the AD replication. Once the Ad was replicated, I went ahead and did a Preview in the DynamicDistributiongroup and only found users from the EnabledUsers.
    I even confirmed by sending an email to the dynamicdistributiongroup with a delivery receipt. I got the receipt for all the users in the EnabledUsers OU.
    Waiting to hear from you
    Naveen V Microsoft Forum Specialist

  • Cannot assign an email address to SharePoint group (distribution groups)

    Hello,
    I configured incoming email awhile back in our SharePoint 2010 environment and it works great. I can assign an email address to a list and the necessary contact is created in AD in the OU I configured for incoming email and of course the item emailed in
    is added to the list.  However, if I try to assign an email address to a SharePoint group to create a distribution group, the following happens:
    The following error has occurred while attempting to contact the Directory Management Service: The request failed with HTTP status 401: Unauthorized.
    From what I've found on Technet and other resources, if incoming email works as expected, assign an email address to a group should work without issue but this obviously isn't the case.  I've dug around in the 14 hive and pretty much the same exact error
    is found there (with just a little more detail):
    System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
    at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
    at Microsoft.SharePoint.DirectorySoap.SPDirectoryManagementProxy.CreateDistributionGroup(String Alias, String Name, String Description, String ContactCN, RequestInfo Info, DistributionGroupFlags Flags)
    at Microsoft.SharePoint.SPGroup.CreateDMS(String dlAlias, String friendlyName, String description, String[] members, String requestor, String justification, Int32& jobId)
    Any ideas what this could be?  I'd imagine the timer service account has the appropriate permission on the OU as it can create objects for lists with incoming email enabled without issue.

    For the issue with group members who are not added during the creation process ...
    I followed this Technet article : Configure
    incoming email for a SharePoint 2013 farm
    But in the paragraph "Configure AD DS to be used with Directory Management Service", I added
    delegation of control for the following common tasks :
    Create, delete and manage groups
    Modify the membership of a group
    The distribution group gets created in AD with members in SharePoint 2013 ! It should work with 2010 as well…
    PS : Do not forget to set up these rights, not only for the Central Administration Application pool Identity account, but for all
    your Web Applications!

  • Looking for Script Exchange-2007: Import-Mailbox Calendar Folder on multiple mailboxes {Distribution Group}

    Hi,
    I'm looking for a PowerShell script which will import a Calendar events into student's mailbox (Calendar). Those students are located in a distribution group and I would like to target the distribution group; I'm trying to simulate what I want to achieve
    in the below code example, I would appreciate if anyone jump in and advise.
    $Users = Import-Csv C:\users.csv | ForEach-Object{Get-DistributionGroup -Identity SC-1213} | Import-Mailbox -Identity $Users -PSTFolderPath c:\Calendar.pst -IncludeFolders '\Calendar' -StartDate -EndDate
    Much appreciated..
    Hussain

    The logic doesn't work unless you are using StartDate and EndDate for the period when you change the item.  As I said above, StartDate and EndDate are not the times when the meeting starts and ends - they are the times that the item was either added
    or modified in the mailbox.  Your filter was trying to pull items that were in the future.
    And as I also said above, if you import a modified item, the original is
    not going to be updated.  You will have a duplicate meeting
    on the calendar.  You would have to remove the original
    and import the updated item if this was how you wished to manage the updates.  This is not nearly as effective as
    sending meeting requests and updating those meetings.
    For example, if we do things the way you are doing them, and we add a "Student Appreciation Bonfire" meeting to the calendar for April 12 at "The Quad", we would do the following:
    On February 1, you get information for the meeting that needs to be imported
    You create this new meeting in the PST calendar - "Student Appreciation Bonfire"; Date April 12, start 8:00 AM, end 12:00 noon; Location The Quad
    You import the PST into everyone's calendar
    You receive a note on March 12 saying the venue has changed to The River Beach, so you update this meeting in your PST
    Since there are other calendar items in the PST, you import the update using StartDate of March 12 and EndDate of March 13 - the date that you changed the item, not the date the item occurs
    At this point, all users have two meetings on their calendar - the original and the update
    If, instead of doing it this way, you create a Student Actvities Calendar mailbox, you would handle it this way:
    On February 1, you get information for the meeting that needs to be imported
    You create this new meeting in the Corporate calendar - "Student Appreciation Bonfire"; Date April 12, start 8:00 AM, end 12:00 noon; Location The Quad
    You invite everyone to the meeting
    You receive a note on March 12 saying the venue has changed to The River Beach, so you update this meeting in that calendar and send out the update
    At this point, all users have only the one meeting on their calendar - the update
    Using the PST as the source for the meetings would work only for items that
    will not be changed - holidays are a good example.

  • How to add Distribution Group email alias from CSV in office 365

    Hello Forum!
    Hope someone can help me troubleshoot this or even let me know if its not possible. But, I used powershell to import distribution groups and set primary emails in Office 365. That worked great, but we have two domains and i would like to add an email alias
    to all my DGs for the other domain.
    This was my best attempt and its not going well:
    Import-CSV "C:\distributionlists.csv" | foreach {Set-DistributionGroup "$_.Name" -EmailAddresses SMTP:$_.PrimarySmtpAddress,$SecondarySmtpAddress}
    $_.Name is the column name for my DGs. IE: DL-IT
    $_.PrimarySmtpAddress is the column name for my primary email. IE: [email protected]
    $_.SecondarySmtpAddress is the column name for my email alias. IE: [email protected]

    Hi,
    Based on my understanding, the below code should work when your manually run it:
    Set-DistributionGroup "DL-accounting"
    -EmailAddresses SMTP:<Primary Email>,<Alias Email>
    If all those distribution groups have been already created, then use set-distributiongroup command should work. How about first new those distribution group, and then run foreach block to do the loop.
    Regards,
    Yan Li
    Cataleya Li
    TechNet Community Support

  • Unable to edit Distribution Group membership via Outlook (works via ECP).

    SITUATION: I am attempting to enable the ability for specified users to edit the membership of Exchange 2010 distribution groups via Outlook 2010.  I have configured permissions via RBAC for them to be able to do this by following the instructions and
    running the script found here:
    http://msexchangeteam.com/archive/2009/11/18/453251.aspx
    After running the script, users specified as group managers are able to edit group membership through the ECP.  But when they attempt to do so via Outlook, they receive the same message that they would see if the permission to edit group membership
    was not enabled:
    "Changes to the public group membership cannot be saved.  You do not have sufficient permission to perform this operation on this object."
    QUESTION:  Does anyone have any idea as to why we are still unable to edit group membership via Outlook, when all the permissions appear to be enabled doing so?

    Click Start
     Collapse this imageExpand this image
    , point to All Programs , point to Exchange Server 2010 , and then click
    Exchange Management Shell .
    At the command prompt, run the following cmdlet:
    New-RoleGroup DistributionGroupManagement -Roles "Distribution Groups"
    At the command prompt, run the following cmdlet:
    Add-RoleGroupMember DistributionGroupManagement -Member <var>UserName</var>
    Open Outlook and try to remove from your distribution list those members that you could not remove before

  • Exchange 2003/2010 Co-Existence - Distribution Group Management

    We're running both exchange 2010 and Exchange 2003.  I have an issue where some distribution groups were upgraded to Exchange 2010 (v14.0.100) and the manager of those lists who are on Exchange 2003 can no longer modify members, they get the error:
    "Changes to the distribution list membership cannot be saved.  You do not have sufficient permission to perform this operation on this object".
    We've already implemented the myDistributionGroupsManagement role with success to allow Exchange 2010 users to manage their own list without allowing them to create new ones.
    http://blogs.technet.com/b/exchange/archive/2009/11/18/3408844.aspx
    Trying to apply the "Default Role Policy Assignement" to the exchange 2003 users returns an error.  Is there any way Exchange 2003 users can manage Exchange 2010 Distribution list they owned without being upgraded to Exchange 2010?  If not, is
    there any way to downgrade distribution group to Exchange 2003 once they've been upgraded?

    Hi,
    From my lab, legacy exchange user can manage the distribution group which has been  upgrade to Exchange 2010.
    Exchange 2010 sp2, Exchange 2003 with sp2.
    I can add/remove member for distribution group from address book via outlook.
    Xiu Zhang
    TechNet Community Support

  • Managing Distribution Groups with hidden membership (when hideDLMembership is true)

    Hi All,
    I have a
    situation in a Exchange 2010 SP2 messaging environments where we want to manage two distribution groups through Outlook client and want to ensure that its membership is visible to none but the distribution group owners.
    I have followed this article "http://blogs.technet.com/b/kamleshk/archive/2013/08/22/3478284.aspx" but in my case the owner can't see the membership.
    The Outlook client version is 2007.
    I have enabled "MyDistributionGroups" in the default role assignment policy to enable Distribution Group management by end users.
    We use Outlook Anywhere but I have tried to add the registry Key "DS Server" but no way.
    Thank you in advance.
    Simone
    Simone

    Hi Simone,
    How about in OWA?
    If OWA works well, it should be an issue on the Outlook Client side.
    If OWA not works neither, it still the permission issue. It need sometimes to sync the operation.
    Please run following command to verify the owner permission:
    Get-DistributionGroup -Indentity DGName | FL
    Thanks
    Mavis 
    Mavis Huang
    TechNet Community Support

  • Exchange forward to distribution group error

    Hello
    I would like to create a forwarding rule on my Office365 Outlook account
    so that, when a new mail comes in with a certain pre-defined string in it (alert for a Sharepoint teamsite), it gets forwarded to every member of a distribution group. However I get the following error when submitting it, causing it not to take effect:
    There are multiple recipients matching the identity "HEDFIN mailinglist". Please specify a unique value.
    When following the specified "Click here for help", I get redirected
    to a TN Exchange Server 2013 Error Landing page with the following (error-message?) in the URL: e=ms.exch.err.Ex8155FB
    I'm trying to get a work-around for the fact that there is no possibility to set a global alert on a team sub-site. I'd like a mail to be sent to every user when
    anything changes on a subsite. So my work-around would be that I manually set my alerts on everything of every sub-site and then forward the mails I receive (from my own alerts) to the different distribution groups (groups with different users and their mail
    accounts) by filtering on the Subject (name of subsite).
    Is there any other way to do this without having our members set their alerts all manually? I found similar requests from a year ago but they haven't been solved
    yet.
    PS: I posted this same request yesterday as well, but for some reason the link doesn't work anymore and I can't seem to find it when using Search either.
    Regards
    Robin

    Hi Robin,
    I want to double confirm the E-mail Server, Office 365 or Exchange 2013?
    They are two different products, even if they are similar in many aspects.
    If we are using Office 365, I suggest asking Office 365 Forum for help, so that we can get more professional suggestions.
    For your convenience:
    http://community.office365.com/en-us/forums/default.aspx
    However, I still have some suggestions, maybe something silly, just for your reference:
    PLEASE MAKE A FULL BACK UP BEFORE PERFORMING FOLLOWING ACTIONS!
    1. Please do a full resync of on premise AD (what is not the very best solution with bigger customers)
    HKEY_LOCALMACHINE\Software\Microsoft\MSOLCoExistence
    Search FullSyncNeeded value and pass it to 1
    Initiating synchronization
    Launch the synchronization console:
    %programfiles%\Microsoft Online Directory Sync\DirSyncConfigShell.psc1
    Run the following command:
    Start-OnlineCoexistenceSync
    2. Better is to change the settings in MOP for every affected dirsynched user-change it to something abnormal and then back to the correct value.
    This triggers a repopulation of AD Property changes and fixes the MOP error.
    Hope it is helpful
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • Can't manage distribution group from Outlook with Exchange 2010 or Exchange 2013 mailbox

    Hi All,
    In my environment we are using exchange 2010 that contains the distribution groups which has been migrated from exchange 2003 environment .On that one of the distribution group is having an problem for the user who had an access to manage DL'S via outlook
    but he can't able to manage it.When we add the new user to manage same DL and the new user tries to manage the DL via outlook it happens without any issues. 
    issue occurs only for the user who has already have the manage access permission on the DL where the group was on exchange 2003 before migrated to exchange 2010.
    Reffered blog : http://support2.microsoft.com/kb/2586832?wa=wsignin1.0
    We have done all the settings defined on the above mentioned link but still we are facing the issue.
    In addition to that , we have forcefully upgraded the DL too by using the below mentioned command.
    set-distributiongroup -identity "name of the problematic DL" -forceupgrade
    Please all of you provide your valuable suggestions to overcome this issue .
    Error message :
    Regards
    S.Nithyanandham
    Thanks S.Nithyanandham

    Hi S.Nithyanandham,
    From your description, I would like to verify if the problematic manager user is a member of security group. If yes, this issue will occur. In Exchange 2010, distribution groups can't be managed by groups, only individual users can manage groups. But in
    Exchange 2003, it is possible to use groups to manage a distribution group.
    For more information, here is a blog for your reference.
    How to manage groups with groups in Exchange 2010
    http://blogs.technet.com/b/exchange/archive/2011/05/04/how-to-manage-groups-with-groups-in-exchange-2010.aspx
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

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

  • Exchange Distribution Groups not updating in Active Directory

    Hi all,
    I'm not sure if this is intended behaviour or not, but any distribution group we create in Exchange ECP does not update in Active Directory Users and Computers. Any particular reason why?
    For example, we have a user group called "Managers" and we've recently created a new group called Area Managers. We've since moved some people out of Managers and put them in Area Managers, however in Active Directory all we see is the Managers
    group with all the old managers in there. The OU for the Area Managers group has been set correctly.
    Best regards,
    Please remember to mark the replies as helpful if they help, or as answers if they answer your question. Please also unmark the answers if they provide no help.
    Zach Roberts
    Independent Microsoft Community Support Advisor
    Disclaimer: I don't work for Microsoft. Any advice given is my own and does not represent Microsoft.
    Follow me on Twitter:
    @WindowsZach

    Hi,
    Please run the following command to confirm the members of two groups.
    Get-DistributionGroupMember -Identity Area Managers
    Get-DistributionGroupMember -Identity Managers
    I also suggest to remove the member from “Managers” in AD then check the members of “Managers” in EAC to check this problem.
    Best Regards.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Lynn-Li
    TechNet Community Support

  • Modify a group of contacts or quick change address

    Hi,
    Would anyone know a good program or tip on how I can modify a group of peoples work address or home address instead of individually change one at a time.
    Also, If I have a contact with key address details and phone numbers and another contact has joined the same company, is there a way to drag over all the details instead of manually typing it all in again?
    Thank you in advance,
    Dean

    Hi Dean,
    I'm not sure about the batch editing of cards, so I'll defer to others for that.
    Also, If I have a contact with key address details and phone numbers and another contact has joined the same company, is there a way to drag over all the details instead of manually typing it all in again?
    You can copy an address card and edit the copy if that suffices? Just select the person in the 'Name' column and press command+c then command+v (i.e. copy/paste)

Maybe you are looking for

  • Read container element in program exits

    Hi all, again me Today the question is that i want to read and change the element 'ObjectType' of an BOR element's container before execute method of the task. I use the program exits with CL_SWF_TST_PE_BEFOREEXEC class, it's work fine. But this elem

  • Skype problems with Airport Extreme after update

    I use Skype to call regular phones and landlines. For over a year now it has worked well with my Airport Extreme, however, I noticed that around the same time I updated my Airport utility to 5.5.2 and Mac OS X update on 1/7/11 I am having problems wi

  • Stored Procedure is very slow

    I have a stored procedure that is very slow and would like more efficient SQL.  I want to get a selection of data put into a @SearchTbl that I send elsewhere for further manipulation.  I do these in two parts.  First, if the sending program sends a s

  • Lightroom 4.3 corrupts my RAW images stored on local SSD harddisk

    Using Lightroom 4.3 with Camera RAW 7.3 on latest MacBook Pro with 256 GB SSD harddisk, 8 GB internal memory bought 2 months ago. Hardware shows no other problems or malfunctioning, no issues with RAM or otherwise. Started Lightroom 4.3 did an import

  • Generic extractor and an append structure

    Hi all, this system is driving me crazy. So, that's something worked in former times.. I created an generic extractor on VEKP. I have not restricted to any selection criteria or hide any field. The system generated the extractor and everything is fin