Powershell: Who is in an Active Directory Group?

This Powershell snippet uses the Get-ADGroupMember to retrieve the names of users in a specific AD group.

?View Code POWERSHELL
Import-Module ActiveDirectory;
Get-ADGroupMember -Identity "Group Name" | Select-Object Name | Format-Table -AutoSize;

Output should look something like below;

Name
----

Joe Bloggs
John Smith
Jane Doe


One Comment

Leave a Reply

Current ye@r *