Link to home
Start Free TrialLog in
Avatar of kam_uk
kam_uk

asked on

Custom Query in AD

Hi

We're running AD 2008. I have the ADUC application open and want to run a query so that I can be returned all members of a group named "Marketing"

Does anyone know how I would go about doing this?
Avatar of Neil Russell
Neil Russell
Flag of United Kingdom of Great Britain and Northern Ireland image

If you have ADUC open then just click on the domain level, then click on the Find ICON and type in the name of the group.
When it finds the group, double click on the group and then on the properties page that that opens click on members.
Avatar of kam_uk
kam_uk

ASKER

Hi

Yep, but there are hundreds and I wanted to export this list to a CSV file of some sort?
Ah why didnt you say :P

Get the Quest QAD Commadlets, They are free. ( http://www.quest.com/powershell/activeroles-server.aspx)

Then just use....

mkdir c:\temp
get-qadgroup | foreach-object {
get-qadgroupmember ($_) | export-csv "C:\temp\$($_.name).csv"
}

Avatar of kam_uk

ASKER

:)

Thanks but do you know the commands to do this within ADUC? I won't be able to install ny software for the moment

Thanks agaoin!
Why not use vb script to pull the information. No need to install anything...
Refer to this link:   #30      Enumerate Group Membership to a CSV File
Avatar of kam_uk

ASKER

There must be an easy way to get this from ADUC without VB or installing anything? Surely it's just a simple LDAP query to get the members of Marketing?
ASKER CERTIFIED SOLUTION
Avatar of Mike Kline
Mike Kline
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial