J. Toran
J. Toran

Reputation: 177

Add Windows user from command line

I'm trying to add a new Windows user from the command line using these instructions. I'm just trying to add a regular user at this time. The command I'm entering is

net user /add admin-user admin

I get the following messages:

System error 5 has occurred.

Access is denied.

I am running this from an admin account, and I'm able to create a user by going through the regular settings screens. What am I doing wrong? TIA.

Upvotes: 0

Views: 911

Answers (1)

maio290
maio290

Reputation: 6742

I am pretty sure you are not running your CMD as admin.

You can check this by typing net session as found here.

To run your CMD as admin:

  1. Press the windows key
  2. Type cmd
  3. Right click on the localised name of cmd (command prompt)
  4. Click on "Run as Administrator"

Upvotes: 1

Related Questions