Finding users

Posted on 2006-05-26
Last Modified: 2011-10-03
I need to be able to find all users that exist within BOTH AD groups "Citrix Office 2000 Users" and "Citrix Clinical Office Users". I have 2600 users so the list would be a bit large to manually go through.

We had some users get assigned to both groups, therefor they are getting the Office icons two times on their desktop.

Question by:campbelc
    LVL 15

    Accepted Solution

    Hello Campbelc,

    Create a query in ADUC.
    Open ADUC and in the "Saved Queries"folder create a new query.
    Select "define query", select "custom search" and klik the advanced tab.
    Use the following query for your search:
    (&(objectClass=User)(memberOf=CN=Citrix Office 2000 User,OU=OUNAME,DC=domainname,DC=com)(&memberOf=CN=Citrix Clinical Office Users,OU=OUNAME,DC=domainname,DC=com))
    you wil have to change the CN and OU names for teh query to work in you environment.

    Here are some LDAP search samples for some extra information.

    Good luck,

    LVL 6

    Author Comment

    Thank you worked great. My problem was I entered the OU statements in reverse.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
    I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    732 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

    21 Experts available now in Live!

    Get 1:1 Help Now