Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 437
  • Last Modified:

Search feature in Active Directory

When using the search feature in Active Directory to find a user, computer, etc., after the search returns the results, why isn't there a way to see what OU the object is in? Or is there and I am missing it?  The only way I get around it is when the search finds the object, I move it to an OU so I now know where it is, then move it again to the OU I want it in.  I have to believe there is an easier way than what I am doing.
0
National-Lumber
Asked:
National-Lumber
  • 4
  • 2
2 Solutions
 
Hedley PhillipsOwnerCommented:
I think you can do it using the dsget command. Let me find some more info for you.
0
 
Hedley PhillipsOwnerCommented:
Here you go:

eg

dsquery user domainroot -name John*

and that will give you the following output:

"CN=John J. Phillips,OU=Reigate,DC=companyname,DC=local"
"CN=John Phillips,OU=Nutfield,DC=companyname,DC=local"
0
 
dhoffman_98Commented:
Mr-Madcowz solution will work if you want to use the command line.

But another solution for you... if you are doing your search in Active Directory Users and Computers... on the VIEW menu, turn on the "Advanced Features" line. Then open the item you searched for, and you will see a new tab called "Object". That will show you the current location for the object.
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
Hedley PhillipsOwnerCommented:
@dhoffman_98

ah, that is much better.

Forget my comments
0
 
National-LumberAuthor Commented:
Hey, two solutions are better than one!!  Thanks again!
0
 
dhoffman_98Commented:
Agreed... there are other ways I can think of also to get this information. I do use dsget and dsquery at times also, but it all comes down to what you are looking for, whether it needs to be automated, and how many objects you want to find. If you want to dump information for a whole domain or OU, then the command line tools are obviously better than clicking on each object and opening the tab.
0
 
Hedley PhillipsOwnerCommented:
The main thing here is that I have learnt something new as well... which is great.

Thanks for points & have a good w/end guys.

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now