Friday, February 5, 2016

Get User from AD Group in powershell

How to list all names and descriptions of a user in an Active Directory Group with powershell

Get-ADGroupMember -identity "AD GROUP I WANT TO LOOKUP" | select name | export-csv -path c:\output.csv

Import-CSV output.csv | ForEach-Object { Get-ADUser -identity $ -Properties Description } | select name, Description

More about neonprimetime

Top Blogs of all-time
  1. pagerank botnet sql injection walk-thru
  2. DOM XSS 101 Walk-Through
  3. php injection ali.txt walk-thru

Top Github Contributions
  1. Qualys Scantronitor 2.0

Copyright © 2015, this post cannot be reproduced or retransmitted in any form without reference to the original post.

No comments:

Post a Comment