Finding Group Members

Welcome Forums General PowerShell Q&A Finding Group Members

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
3 years, 9 months ago.

  • Author
    Posts
  • #24267

    Participant
    Points: 0
    Rank: Member

    I have a task i'm trying to complete that will:

    1) Check against a hard coded folder path list for their security
    2) If a user is part of that security group that isnt in an approved Group it needs to be reported (exclusions for Administrators, Domain admins, etc..)

    This script will be ran locally on each of the servers, with domain credentials.

    Is there a way with powershell to determine what Groups a User is part of on the domain, without being on the domain controller?

  • #24272

    Participant
    Points: 14
    Rank: Member

    https://gallery.technet.microsoft.com/Get-users-recursive-group-aeee8dd1

    I found this with a little searching. I have not tested it or anything but it appears to do what you require.

    Take a look and see what you think and test outside of production.

    -VERN

The topic ‘Finding Group Members’ is closed to new replies.