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
Any idea of how to do this with vbscript? I've search quite a few places and
can find a lot of LDAP examples to get user info, but none on how to get the
users OU.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.