Announcement

Collapse
No announcement yet.

How do I enumerate all members of a Dynamic Distribution Group?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I enumerate all members of a Dynamic Distribution Group?

    I've figured out that to do this, I need to execute two commands:

    $Group = Get-DynamicDistributionGroup -Identity "My Dynamic Group"
    Get-Recipient -Filter $Group.RecipientFilter

    But can I put these two commands onto one line?
    |
    +-- JDMils
    |
    +-- Regional Systems Engineer, DotNet programmer & Jack of all trades
    |

  • #2
    Re: How do I enumerate all members of a Dynamic Distribution Group?

    Hi,

    Try this
    Get-DynamicDistributionGroup -Identity "My Dynamic Group" | Get-Recipient -Filter $Group.RecipientFilter

    Else
    put then in notepad and save it as .ps1 file then run from ps shell > .\fileName.ps1
    Thanks & Regards
    v-2nas

    MCTS 2008, MCTIP, MCSE 2003, MCSA+Messaging E2K3, MCP, E2K7
    Sr. Wintel Eng. (Investment Bank)
    Independent IT Consultant and Architect
    Blog: http://www.exchadtech.blogspot.com

    Show your appreciation for my help by giving reputation points

    Comment

    Working...
    X