Use the command without brackets. The brackets shown in help are placeholders, not characters to type.
To create a local user:
net user <username> <password> /add
Example:
net user Admin2 P@ssw0rd123 /add
To make that user a local administrator:
net localgroup Administrators Admin2 /add
To verify the account exists and is enabled:
net user Admin2
If needed, explicitly enable the account:
net user Admin2 /active:yes
If the goal is to enable the built-in Administrator account instead, use:
net user Administrator /active:yes
Key points based on the errors shown:
- Do not type
[]{}or|. Those are syntax notation only. -
/addmust be part of thenet usercommand, for examplenet user Admin2 P@ssw0rd123 /add. -
Bet userand similar typos will fail because the command must benet user. - If a password contains special characters, using
*prompts for the password instead of showing it on screen:
net user Admin2 * /add
Then add it to Administrators:
net localgroup Administrators Admin2 /add
Warning: adding accounts and granting administrator rights changes local security on the PC. Use only the intended account name and password.