Hi and welcome.

This will help you out.
fnInGroupAD() - Determines if a user or computer is a member of an AD Group
GetUserOU() - Retrieve OU of user account.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.