Create user account in a remote computer.

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.
 
S

Scott McNairy \(MVP\)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top