August 28, 2011

Windows Net User command: Manage User Account using Command Prompt

Using "Net User" command, administrator of Windows Operating System can manage windows user account from command prompt.

To Know All Available User Account on Windows:

net user

Add New User on Local Computer:

net user add  newuser_loginid  newuser_password

Add Domain User Account:

net user add  newuser_loginid  newuser_password /domain

In Window 7  Bydefault "Administrator"  account  is Disabled/Locked. Hence to login as administrator you have to activate/enable that user account using following command

net user administrator /active:yes

Similarly you can Activate/Enable another user account that has been Disabled/Lock by using following command

net user user_loginid /active:yes

To Deactivate/ Lock user account :

net user user_loginid /active:no

Prevent User From Changing Password:

net user user_loginid  /passwordchg:no

To Allow User For Changing Password:

net user user_loginid /password:yes

No comments:

Post a Comment