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.