Solved

Active Directory Group Search with Wildcard

Posted on 2011-03-04
6
1,039 Views
Last Modified: 2012-05-11
I am new to using the query abilities for Ad.  I want to search for a group in which I do not know the complete name.  I tried to search for *criteria* and %criteria%.  I also toyed with the advanced search without positive  results.  I would like to know where I would go to query for a group and what they syntax would be to do so using a partial group name.  A couple of links to some good resources would be nice as I am certain I will be expanding on this same query method in the near future.

Thanks for the help
0
Comment
Question by:Cystixs
  • 3
6 Comments
 
LVL 57

Expert Comment

by:Mike Kline
ID: 35039197
If you were looking for a good link, this is one I like   http://www.selfadsi.org/ldap-filter.htm

If you want to do this natively you can use ADUC

(&(objectcategory=group)(name=*criteria*))

I can take a screen shot if that would be helpful.

Thanks

Mike
0
 

Accepted Solution

by:
Cystixs earned 0 total points
ID: 35039599
Well, I couldn't get the above to work (returned no results), but it did give me a foundation to find what would work.  Here is the search that I got to return the expected result.

(&(objectclass=group)(cn=*criteria*))

It appears cn(common name) is the field I needed to search on.  This makes me wonder what the name field is or if it is a valid field for the 'group' object.
0
 
LVL 57

Expert Comment

by:Mike Kline
ID: 35039659
That is odd, I just used name and samaccountname and it worked (see screenshots)

query-criteria1.jpg
query-criteria2.jpg
0
 
LVL 57

Expert Comment

by:Mike Kline
ID: 35184601
That is odd because the examples/screenshot shows it does work.  I think you should pass some points along as it did help you.

Thanks

Mike
0
 

Expert Comment

by:South Mod
ID: 35225173
All,
 
Following an 'Objection' by mkline71 (at http://www.experts-exchange.com/Q_26901829.html) to the intended closure of this question, it has been reviewed by at least one Moderator and is being closed as recommended by the Expert.
 
At this point I am going to re-start the auto-close procedure.
 
Thank you,
 
SouthMod
Community Support Moderator
0

Join & Write a Comment

Introduction You may have a need to setup a group of users to allow local administrative access on workstations.  In a domain environment this can easily be achieved with Restricted Groups and Group Policies. This article will demonstrate how to…
Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

760 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

18 Experts available now in Live!

Get 1:1 Help Now