Solved

Export members of an Active Directory Security Group using PowerShell

Posted on 2009-05-13
2
7,318 Views
Last Modified: 2012-05-06
Hello,

I would like to export the members of one security group to a csv file from a WIndows Server 2003 Active Directory using PowerShell.

Please help.

Thanks
0
Comment
Question by:maherusa
2 Comments
 
LVL 17

Accepted Solution

by:
OriNetworks earned 250 total points
ID: 24382005
There are free cmdlets available from quest to list users. check out this page http://dmitrysotnikov.wordpress.com/2007/04/18/powershell-for-active-directory-examples/
0
 
LVL 57

Assisted Solution

by:Mike Kline
Mike Kline earned 250 total points
ID: 24382234
Yeah quest's cmdlets would do it

http://www.quest.com/activeroles-server/arms.aspx
I'm assuming you already have powershell installed since you asked the question, but in case someone comes across this from google you can get it here http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspx


use the Get-QADGroupmember cmdlet
So example -- I'll export the members of the domain admins group and export their samaccountname and name attribute and send the csv to the c drive

Get-QADGroupMember "domain admins" | Select-Object samaccountname, name | Export-CSV -path "c:\domain Admins.csv" -notypeinformation
Thanks
Mike

 
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question