Export AD group members – nested / recursive group members using Quest

As Technet Gallery is retiring so moving the code to Git Hub. (click below github download link for this script)

Export AD group members – nested / recursive group members using Quest

Hi Readers,

This script is alternative to below script & it is fairly simple.

 

http://gallery.technet.microsoft.com/scriptcenter/Export-AD-group-members-6e6c8a9f

 

This just needs a single line of code for extracting the members recursively from the group.

(Thanks to Quest)

 

PowerShell
$members = Get-QADGroupMember $Group -Indirect |  select Name, Type | Export-Csv .\members.csv

Extract the zip file above & just double click the batch file getgroupmembers.bat, it will ask you for group name.

Script will extract the output in same folder in the form of csv.

Capture

Tech Wizard

https://techwizard.cloud

https://syscloudpro.com/

 

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s