>Thanks, Naomi.
>
>Have you used any of the scripts "internally" in VFP 9 before? There's quite a bit of stuff I could do in VFP (connecting to the SQL data source, reading the file into VFP, then preprocessing it), THEN use the scripts to update AD, etc, then use VFP to create a log, etc.
>
>Just not sure how to include the scripts into VFP. :-)
>
>Thanks again!
>
Yes, I'm using some scripts and I also tried something recently trying to help someone from another forum.
See
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1853195&SiteID=1Here is what I have on my desktop for emergency cases:
loCIMV2 = GetObject("winmgmts://localhost/root/cimv2")
loProcesses = loCimv2.ExecQuery("SELECT * FROM Win32_Process WHERE Name LIKE 'vfp%'")
For Each objProcess in loProcesses
objProcess.Terminate(0)
Next
And there were other cases I used it I don't remember right now.
>>>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,
>>
>>Get
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=B4CB2678-DAFB-4E30-B2DA-B8814FE2DA5A and you'll find the scripts you need.
If it's not broken, fix it until it is.
My Blog