Check out the Active Directory Cookbook. Examples are vbscript and perl.
_________________________
Eric