finding user in AD

Posted on 2010-08-19
Medium Priority
Last Modified: 2012-05-10
the AD has many directories and sub directories with literally 1000s of name.

if i know the account name of the user,is there a command to find out quickly which folder/directory that user is located under?

Question by:anushahanna
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 143

Accepted Solution

Guy Hengel [angelIII / a3] earned 252 total points
ID: 33475662
LVL 24

Assisted Solution

by:Mike Thomas
Mike Thomas earned 500 total points
ID: 33475663
yes right click the domain level in AD users and Computers and select find, then type the user name or part of it etc
LVL 24

Assisted Solution

by:Mike Thomas
Mike Thomas earned 500 total points
ID: 33475671
Oh and if you enable the advanced view rom the menu it will give you the "Object" tab, so you can find which OU the object is in.

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

LVL 39

Assisted Solution

by:Krzysztof Pytko
Krzysztof Pytko earned 252 total points
ID: 33475764
type in command line

dsquery user -name "<username>"

or if you have his/her login

dsquery user -samid <login>

it will return distinguished name

cn=user name
ou= in which ou this account is located
dc= domain hwre this user resides
LVL 57

Assisted Solution

by:Mike Kline
Mike Kline earned 500 total points
ID: 33475995
Another really cool tool is adfind by Joe Richards


he has a great shortcut for users

adfind -sc u: dn

want a computer

adfind -sc c:

a group...you get the idea

adfind -sc g:



Assisted Solution

LTCexpert earned 248 total points
ID: 33476544
Right Click the domain and the "find" the user. The click choose colums from view menu and choose published at. this will show you the OU your user is in.

Assisted Solution

Gavincr001 earned 248 total points
ID: 33476839
On AD users and computers switch on view, Advanced
Then search for your user using find, once you see the name you can right click and choose name mappings then you'll see the OU path.
LVL 57

Assisted Solution

by:Mike Kline
Mike Kline earned 500 total points
ID: 33476884
If you want to do it via the GUI you can also make things easier by adding columns.  See this blog entry from Mark
So you’ve found the objects in your Active Directory, but where exactly are they?
...command line will impress your coworkers though :)

Author Comment

ID: 33477134
very helpful. thanks.

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Microsoft Office 365 is a subscriptions based service which includes services like Exchange Online and Skype for business Online. These services integrate with Microsoft's online version of Active Directory called Azure Active Directory.
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses

770 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