Thursday, May 3, 2012

Powershell and Active Directory : Find all members of the Group using Powershell.



Today our target is to find all members of particular group. We know the Group Name and we are going to get the list of all of his members.

we are going to use Get-ADGroupMember cmdlet. This command only available if you have RSAT tool installed and loaded the "ActiveDirectory" Module.

Lets Start.

Import the Active Directory module first.

Import-Module ActiveDirectory

30-04-2012 23-21-03

After importing the Module, we are going to use Get-ADGroupMember cmdlet.

After Get-ADGroupMember cmdlet provide the name of the group it shows list of all of his members , them after Piping we are using Select cmdlet to show only names of the members.

Get-ADGroupMember .Systems_Manchester | Select Name

03-05-2012 11-30-56

Sorted :) , Simple ..

Thanks for reading .

Aman Dhally


1 comment:

  1. hola necesito obtener los usuarios con sus mail de todas las listas de distribucion de mi compañia, nombre, mail, de los usuarios y de las listas de distribucion