Take a look at WMI scripting. I don't the full solution but this would be the the idea.
objRootDSE = GetObject("LDAP://rootDSE")
objContainer = GetObject("LDAP://" +objRootDSE.Get("defaultNamingContext"))
loComputer = objcontainer.Create("Computer", "cn=" + 'Mike')
>I've been tasked with populating a client's AD with records in a SQL table.
>
>I have found a ton of info about using .Net to do this, but I haven't been able to make it work.
>
>That said, I'm much more comfortable working in VFP and wanted to see if anyone else has done anything with adding/updating AD with VFP?
>
>Any info is appreciated....
>
>Thanks,