Sunday, August 15, 2010

Reset your Windows password through Command prompt

Procedure to reset your password is given below:-

1) To display the users present in the computer

C:\>net user

User accounts for \\

-------------------------------------------------------------------------------
ASPNET                   Administrator
testuser
The command completed successfully.
==============================================================
2) To display the user details:-

C:\>net user testuser
User name                    testuser
Full Name                    testuser
Comment
User's comment
Country code                 000 (System Default)
Account active               Yes
Account expires              Never

Password last set            3/19/2010 2:15 PM
Password expires             Never
Password changeable          3/19/2010 2:15 PM
Password required            Yes
User may change password     Yes

Workstations allowed         All
Logon script
User profile
Home directory
Last logon                   Never

Logon hours allowed          All

Local Group Memberships      *Users
Global Group memberships     *None
The command completed successfully.
=======================================================
3) To reset the password

C:\>net user testuser *
Type a password for the user:******
Retype the password to confirm:******
The command completed successfully.