GetObjectOU() will do this - it's available from the Resources / Kix Function Library page on my web site.

It can return the DN string for a User or Computer. You can then do an InStr() to determine if the desired OU is in the DN string.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D