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?
Active Directory

Avatar of undefined
Last Comment
Mike Kline
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?
Avatar of Neil Russell
Neil Russell
Flag of United Kingdom of Great Britain and Northern Ireland image

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
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!
Avatar of ashutoshsapre
ashutoshsapre
Flag of India image

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
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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Active Directory
Active Directory

Active Directory (AD) is a Microsoft brand for identity-related capabilities. In the on-premises world, Windows Server AD provides a set of identity capabilities and services, and is hugely popular (88% of Fortune 1000 and 95% of enterprises use AD). This topic includes all things Active Directory including DNS, Group Policy, DFS, troubleshooting, ADFS, and all other topics under the Microsoft AD and identity umbrella.

86K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo