[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 7487
  • Last Modified:

Export members of an Active Directory Security Group using PowerShell

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
maherusa
Asked:
maherusa
2 Solutions
 
OriNetworksCommented:
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
 
Mike KlineCommented:
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

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now