Edit user accounts with the command line in Windows 10

Add an admin account with password “123abc”:

net user Frank 123abc /add

Make the account administrator:

net localgroup administrators Frank /add

Add a domain user to the domain administrator group

net localgroup administrators domainname\Frank /add

Activate the hidden administrator account:

net user administrator /active:yes

Change password for the hidden administrator account

net user administrator *

Activate the guest user account:

net user guest /active:yes

Create a new user without a password:

net user Frank /add

Change the password of a user:

net user Frank 123abc

Delete a user account

net user Frank /delete

You will have to manually delete the user folder after deleting the account.

Leave a Reply

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