Solved

Active Directory Group Search with Wildcard

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

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 article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

920 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

13 Experts available now in Live!

Get 1:1 Help Now