Platform SDK: Active Directory, ADSI, and Directory Services
Basic ADSI
There are a few basic concepts that must be understood to script with ADSI:
Binding
Getting and Setting Properties
Containers and Children