Download the Tom's Hardware App from the App Store
The reference for current tech news
Yes No
Tom's Hardware > Forum > Windows 2000/NT > General Discussion > Find what OU a user is a member of

Find what OU a user is a member of

Forum Windows 2000/NT : General Discussion Find what OU a user is a member of

Word :    Username :           
 

Archived from groups: microsoft.public.win2000.active_directory (More info?)

 

Can someone tell me the easiest way to find out what OU a user is a member of.

Thanks

Reply to Anonymous
Register or log in to remove.

Archived from groups: microsoft.public.win2000.active_directory (More info?)

 

The OU is part of the distinghuishedname of the user object. So, if you know
how to get the DN, you will get the OU. Alternatively, if you enable
"advanced" view in ADUC, you can also see the OU of an object by looking at
the properties.

--

Sincerely,
Dèjì Akómöláfé, MCSE+M MCSA+M MCP+I
Microsoft MVP - Directory Services
www.readymaids.com - we know IT
www.akomolafe.com
Do you now realize that Today is the Tomorrow you were worried about
Yesterday? -anon
"Ziguana" <Ziguana@discussions.microsoft.com> wrote in message
news:43427342-4F88-40D6-B5AC-1C4D4B0BFED9@microsoft.com...
> Can someone tell me the easiest way to find out what OU a user is a member
> of.
>
> Thanks

Reply to Anonymous

Archived from groups: microsoft.public.win2000.active_directory (More info?)

 

On Mon, 12 Sep 2005 18:14:02 -0700, "Ziguana" <Ziguana@discussions.microsoft.com> wrote:

>Can someone tell me the easiest way to find out what OU a user is a member of.
>
>Thanks


You can use dsquery to query the user name for the distinguished name.

dsquery * domainroot -filter "(&(objectCategory=Person)(objectClass=User)(sAMAccountName=Jerry))" -attr distinguishedName -limit 0

See tip 7714 » What attribute names can I use with the user filtered dsquery command?
in the 'Tips & Tricks' at http://www.jsifaq.com


You can use ADFind freeware to do the same:
adfind -default -dsq -f "&(objectcategory=person)(samaccountname=Jerry)"

See tip 5898 » Freeware ADFind

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com

Reply to Anonymous
- 0 +

Did you read the question thouroughly? It says: "The EASIESTway" :sleep:

I don't think neither of the repliers knew what the question was, and neither knew how to reply :pt1cable:

So here's the solution:
1.) Goto Active Directory users and Computers
2.) Goto menu "View" and enable "Advanced Features"
3.) No find your user and check his/her properties. You'll see that there will be an additional tab called "Object", which shows the cannonical name. Hence the tree to the OU will be displayed.

How easy do you want it?

Regards,

R0bstar
Sys Engine
Homebrew Agricultivist
MCSE+ * square = very smart ass!

Creed: Always doubt! Never hesitate!

Reply to R0bstar
- 0 +

R0bstar is there a way to get the info you mentioned above in batch for 150 servers

Reply to Zad

R0bstar wrote :

Did you read the question thouroughly? It says: "The EASIESTway" :sleep:

I don't think neither of the repliers knew what the question was, and neither knew how to reply :pt1cable:

So here's the solution:
1.) Goto Active Directory users and Computers
2.) Goto menu "View" and enable "Advanced Features"
3.) No find your user and check his/her properties. You'll see that there will be an additional tab called "Object", which shows the cannonical name. Hence the tree to the OU will be displayed.

How easy do you want it?

Regards,

R0bstar
Sys Engine
Homebrew Agricultivist
MCSE+ * square = very smart ass!

Creed: Always doubt! Never hesitate!










Thanks Buddy.....It works Fine

Reply to mnathersha
Register or log in to remove.
Tom's Hardware > Forum > Windows 2000/NT > General Discussion > Find what OU a user is a member of
Go to:

There are 857 identified and unidentified users. To see the list of identified users, Click here.

  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them