Create a Local Administrator User from Command Prompt

Microsoft

To create a new local administrator user on a Windows machine, you must be logged in as an admin user, or have remote access using something similar to PSExec running under an administrative account.

 

  1. Click Start and in the Start Search, type CMDRight Click on CMD and choose Run as Administrator.
  2. In the Command Prompt window, type net user /add [AccountName] [Password] and press Enter. (Example: net user /add User1 Password123 )
  3. After the account is created, you can use the following command to add it to the local administrators group: net localgroup administrators [AccountName] /add

After this, the newly created account will be a local administrator.

Leave a Reply

Your email address will not be published. Required fields are marked *