For reasons beyond my control, I have to run our e-commerce on a non-sharepoint server. I can easily create an AD account and have no problems there.
Now, on a different box, I need to add the account to an existing Sharepoint group.
If they were running as different virtual servers on the same box, it's as simple as making a system call to stsadm.exe
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN\stsadm.exe -o adduser -URL http://Sharepoint.mydomain.com/site/ -userlogin MYDOMAIN.COM\Accountname -useremail firstname.lastname@example.org -group SITE-VISITORS -username "Name, Account"
The obvious extension of this technique is to make a system call to PSExec, and do the same thing. It works, but seems to barf occasionally, making it an unreliable method.
Everything is running on the same domain, and the servers are physically near each other. One solution, though inelegant, would be to append the commands to a batch file, and periodically run the batch.
Has anyone solved this issue? How did you do it?