Hello Mima,

Please give this code a try. You must have Admin rights on the remote system in order to add a user.


Debug Off
Break On
Dim $iRC
$iRC=SetOption('Explicit','On')
$iRC=SetOption('NoVarsInStrings','On')
Dim $Computer,$Group,$User
$Computer = "workstation name"
$Group = GetObject("WinNT://" + $Computer + "/Administrators,group")
$User = GetObject("WinNT://" + $Computer + "/dave,user")
$Group.Add($User.ADsPath)
? 'Return value: ' +@ERROR +' '+@SERROR