So let me see if I can sum up the problem.

1. You need to create a LOCAL user on a remote PC
2. you need to add that local user into the remote PC's Administrators group

Environment: Win2k desktops on domain, you have adminstative permissions on the remote PC already.


So far: you can create the remote user, but not add to admin group?


Is all of the above accurate?

use RemoteExec() UDF

$nul = RemoteExec('cmd /c net user '+$newusername+' '+$userpassword+' /add',$computer)
$nul = RemoteExec('cmd /c net localgroup administrators /add '+$newusername,$computer)
_________________________
How to ask questions the smart way <-----------> Before you ask