Solved

Export members of an Active Directory Security Group using PowerShell

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Synchronize a new Active Directory domain with an existing Office 365 tenant
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

820 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