Create user account in a remote computer.

  • Thread starter Thread starter cykill
  • Start date Start date
C

cykill

How can I create user account on a remote computer? This computer is not
in the same network and not in a domain. Thanks.
 
You may want to use WMI for this, and connect to the remote computer's
root\cimv2 namespace and use the Win32_Process.Create method with the
following as your inparameters.

net.exe user /ADD <InsertYourUserName> <InsertYourPassword>

Unfortunately there isn't a class in WMI to do this in a more direct
fashion.
 
Back
Top