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.
National-LumberAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.