You best bet is to read the COM forum, download the ADSI documentation from Microsoft, and write a script using ADSI. It is definitely possible to go where you want to go...

Anyway, most of the code fragments that you will require are already posted on this BBS. Use the BBS search to find those fragments and start building you script. Once you got it somewhat working, we'd be more than helpful in assisting you with specific questions and/or debugging problems.
_________________________
There are two types of vessels, submarines and targets.