Solved

Active Directory Group Search with Wildcard

Posted on 2011-03-04
6
1,050 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

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

830 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