The ADSIUserInfo() UDF can get or set user attributes directly from kix without calling an external process. AdGroupMember() can add, remove, or modify a group or membership. Both should be posted here on KORG, but the latest are available from the Resources / Kix Library section of my web site. Both were developed and used extensively to sync AD data from an external HR database.

The best way for getting output from an external command into Kix is the WSHPipe UDF. Chris S posted the original here, and I have a modified version on my web site that returns a 2-dimensional array of arrays. This is done to separate STDOUT from STDERR, with one line per inner array. Chris' version combined all of the output into a single large string, which I found difficult to deal with, especially when I wanted just output or error text. Either way, the output is delivered directly to a Kix variable.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D