How to find Active Directory objects if you only know the middle part of the name

Often I face the problem in Active Directory knowing some part of a group name, but not the exact name neither the exact location.
To find an Active Directory object, from which you only know the middle part, you’d best use a Query.

In Active Directory Users and Computers (dsa.msc), right-click Saved Queries -> click New -> click Query

image

In the new window, give the query a name, and click “Define Query
Select “Custom Search” and type “CN=*creative*” or “CN=*anything_else*

image

Click OK and you’re done. The query will now result all objects (CN = Common Name) with “Creative” in their name.

If you’re into Powershell, you can also use the following command to get the matching objects. Use something like this:

Get-ADObject -Filter {(name -like “*creative*”)}

or

Get-ADObject -Filter {(name -like “*anything_else*”)}

0 0 votes
Article Rating
Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Anonymous

Nice!

1
0
Would love your thoughts, please comment.x
()
x