Thursday, March 29, 2012

Lets forget our Windows 7 Password

Everybody keeps their secrets in their PC.
And to protect them, We use password.
What if we forget them.
What do had to do?
Either Re-Set Up or PC or System Restore and many more complicated things.
They also cost us our important data to be lost.


No tension, Here I am back with a technique for you to reset your password using only command prompt.


Lets start.


Condition 1: You are logged in to your PC.


1. Go to start button. 
2. Click RUN


3. In the run box type cmd and press Enter 
4. In cmd box type: net user username *                         [eg. net user mirjan; as my username is mirjan]

5.Press Enter.  
6. Now it will ask you to enter password. You type your new password and then retype and Enter. Note: you cannot see what you are typing.
If everything goes right you will get figer below.



Condition 2: You can't log in to your PC.


1. Lets move into complicated one. You are not logged in and you forgot your password. How would you get "cmd" in the logon screen?

2. You will have to do it before forgetting your password ;)


3. Press start button and in search box type cmd
 

4. you will see cmd.exe on the top of the list
 

5. Click right right button on it and from the pull down menu click on Run as administrator
 

6. Again click right button>copy> Paste on desktop and rename it sethc.exe 
 

7. Go to C:\windows\system32 and find sethc.exe


8. Now we will have to replace system32's sethc.exe with our newly created sethc.exe(CMD). But you cannot change system 32 files. If you want to change you will see this box




9. Lets go and take permission.


10. Right click on sethc.exe and click run as administrator.


11. Again right click on it and go for properties


12. security tab> advanced >owner tab> edit

13. There you will see owner is TrustedInstaller

14. you go ahead and change the ownership from TrustedInstaller to Administrator and press Apply. Here is the figurs.
 
 














 
 























15. Click on the Security tab and click on Administrator and then allow full control.



16. Now save a copy of sethc.exe in another folder and replace with your newly created sethc.exe(cmd).


17. Restart your pc
18. In the log-on screen when computer asks for password, Press shift for 5 times and you will see command prompt screen.






And you change your password like before.




NB: You must keep your sethc.exe original copy in another folder so you can restore it anytime you want.

1 comment: