Add users to a distribution group based on Job title

This topic contains 0 replies, has 1 voice, and was last updated by Profile photo of Forums Archives Forums Archives 5 years, 4 months ago.

  • Author
    Posts
  • #6533

    by Jordan at 2013-03-13 07:25:49

    Need a PowerShell script that will add users to a distribution group based on Job title.

    What I have so far.

    Add-DistributionGroupMember -Identity "Group name" -Job title "title name"

    by DonJ at 2013-03-13 08:16:13

    Yeah, but that command won't actually work. The documentation for Add-DistributionGroupMember is at http://technet.microsoft.com/en-us/libr ... 1%29.aspx; it does not have a "-job title" parameter.

    You specify -Identity to tell it what group to modify, and -Member to specify the new members. For example, -Member (), and in the parentheses you'd put a command that retrieved the users you wanted.

    by nate-n8 at 2013-03-13 10:46:00

    might be easier if you create a dynamic list instead based off the job title.

You must be logged in to reply to this topic.