Solved

Export members of an Active Directory Security Group using PowerShell

Posted on 2009-05-13
2
7,310 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Introduction You may have a need to setup a group of users to allow local administrative access on workstations.  In a domain environment this can easily be achieved with Restricted Groups and Group Policies. This article will demonstrate how to…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
The viewer will learn how to dynamically set the form action using jQuery.

863 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now