/How to Add an Admin User on Windows using Command Line

How to Add an Admin User on Windows using Command Line

Here are the simple commands to add an admin user on Windows.

  1. Open up an elevated Command Prompt.
  2. Type this command in the Command Prompt window to create an user.
    net user admin_user_name admin_user_password /add
  3. Type this command in the Command Prompt windows to add the user to the local administrators group.
    net localgroup administrators admin_user_name /add