Changing your windows xp /7 password if you forget it

Many of us often forget windows passwords and find it difficult to recover it . Here is a simple trick by which you can change your password using command line .You can change the password using the net user command.
While booting press F2 or F12 when the screen appears .
Now a screen will appear with three options:
> Safe Mode
> Safe Mode with Command Prompt
> Start Windows Normally


Choose Safe mode with Command prompt and command prompt pops up. Type the following:
net user user_name new_password 
Eg: net user ram admin

NOTE: The command must be executed as it is with spaces .
This command only works with Windows xp and Windows 7.It doesnt work on windows 8.

The same net user command can be used to reset password once you have administrator level access .
First , Log in to the administrator account  and type the same : 
net user user_name new_password 
That's it now you have changed the password 

 NOTE: Non-administrators receive a "System error 5 has occurred. Access is denied" error message when they attempt to change the password

 
 
More Hacking techniques will be updated regularly ...