How would I go about making an Administrator account (read not limited) from the command line in Windows? I have seen commands to the effect of:
net user USERNAME PASSWORD /add
However it is unclear if an account created in this way would be an admin account or a limited account.
net localgroup | find /i "admin"(for latin alphabet) – Matthieu Oct 23 '19 at 15:55findresult in a variable and use it. – Matthieu Apr 08 '20 at 13:36wmic useraccount where "Name='MyUser' and LocalAccount=true" set PasswordExpires=false– mwfearnley Jan 10 '24 at 17:46