How to get the name all ACTIVE members of a group RRS feed

  • Question

  • Hi

    I need to get the name of all active members of a group.

    I tried the below ps command to get the name of all members of the group but I can not differentiate them from the disabled ones.

    Get-ADGroupMember -identity "Internet Users" -Recursive | foreach{ get-aduser $_} | select name

    any one can help?

    Tuesday, February 9, 2016 8:41 AM


  • Close:

    Get-ADGroupMember -identity "Internet Users" -Recursive | where{ (get-aduser $_).Enabled} | select name


    • Marked as answer by NCCOOL2104 Tuesday, February 9, 2016 10:32 AM
    Tuesday, February 9, 2016 8:53 AM