Exchange 2007 - Distribution Groups

Posted on 2012-09-13
Last Modified: 2012-10-11

I would like to know what the powershell command is to add a user to multiple distribution groups.

Question by:lhrslsshahi
    LVL 52

    Expert Comment

    by:Manpreet SIngh Khatra
    You need to understand how are you going to pull all DL's anything common ?

    What rights do you want to give user on the DL's ?

    - Rancy

    Author Comment

    This works fine for 1 user 1 distribution group

    Add-ADPermission –identity "*Tank" –User jbloggs –AccessRights WriteProperty –Properties “Member”
    LVL 52

    Accepted Solution

    As i asked anything common between the DL's if not then we need to get something common with some custom Attribute and then do something like

    Get-DistributionGroup | Where {$_. CustomAttribute1 -Like "*"} | Add-ADPermission –User jbloggs –AccessRights WriteProperty –Properties “Member”

    - Rancy

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    My experience with Windows 10 over a one year period and suggestions for smooth operation
    Get an idea of what you should include in an email disclaimer with these Top 5 email disclaimer tips.
    This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now