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.
- Click Start and in the Start Search, type CMD. Right Click on CMD and choose Run as Administrator.
- In the Command Prompt window, type net user /add [AccountName] [Password] and press Enter. (Example: net user /add User1 Password123 )
- 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.