Hi

I'm adding users or groups to the local SAM on workstations with kix, and using the Addusers.exe from MS Resource Kit.
Is it possibly to do this AND NOT using Addusers.exe, instead using ONLY kix code (NOT the SHELL command) ?

; Start kix code
$Ws = "Ws001"
$Domain = "DOM001"
$DomAdmin = "Administrator"
$DomPw = "secret"
$InFile = "infile.txt"

Use "\\$Ws\C$" /USER:"$Domain\$DomAdmin" /Password:"$DomPw"
If Exist("\\$Ws\C$\Boot.ini")
Shell "%COMSPEC% /e:1024 /c addusers.exe /c $InFile \\$ws"
Use "\\$Ws\C$" /Delete
Else
? "Failed to connect to " + "$Ws"
EndIf
; End kix code

$InFile looks like this:
****************
[Local]
Administrators,,Domain Users
****************

/Mima