[Windows] Manage user from command prompt

netuserTo add a new user, or manage an existed user, you can do it in Control Panel – User and Accounts. But, you can also do it from command prompt. Make sure that you’ve Administrator privilege (Run as Administrator). Here we go :

  1. Open Command Prompt (Start > Run > Type “cmd”) or from Start Menu
  2. To add a new user type :

net user /add

  1. To add an existed user to the group, type :

net localgroup /add

  1. To remove an existed user from the group, type :

net localgroup /delete

  1. To allow/restrict user to change password, type :

net user /passwordchg:yes to allow password change

net user /passwordchg:no to restrict password change

  1. To enable/disable user, type :

net user /active:yes

net user /active:no

  1. To rename an existed user, type :

wmic useraccount where name=’’ rename

  1. To rename an existed groupname, type :

wmic group where name=’’ rename

  1. To get the SID from current user, type :

whoami /user

  1. To enable/disable administrator user, type :

net user /active:yes

net user /active:no

That’s it. Hope it helps 🙂

http://is.its.ac.id

http://www.sesindo.org

http://www.isico.info

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s