how to change password throgh command prompt when not loged in

Anonymous
2010-11-14T07:00:26+00:00

Hi I just Got a computer from a friend and she forgot her password and she never made a recovery disk. We can get into the comand promt when not loged in, so we wanted to know if there was any way to change password throgh the command prompt and what would I type?

Windows for home | Windows 11 | Accounts, profiles, and login

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

7 answers

Sort by: Newest
  1. Anonymous
    2013-04-10T22:29:40+00:00

    It is not possible to reset a password while in Repair Mode.

    Here are two easy and one painful method to reset a Windows password:

    Log on using the password key file on a USB flash disk (if you ever made one)
    
    Log on under the alternative admin account (if you ever created one and made a note of its details)
    
    Use the process below. The process is complex and requires some careful typing.  1. Set your BIOS to use the DVD drive as the primary boot device.  2. Boot with a Windows Repair CD.   3. Press a key when the message indicating "Press any key to boot from CD or DVD …" appears.  4. Select a language, a time and currency, and a keyboard or input method, and then click Next. You are now in Repair Mode.  5. Select an Operating System, then click Next.  6. Select the Command Prompt.  7. Identify the correct drive letter for your Windows installation. It could be a drive other than C: but it won't be X:. You do it by typing the commands     dir C:\Win\* {Enter}     dir D:\Win\* {Enter}     dir E:\Win\* {Enter}     etc.     until you find the Windows folder.     I will call that drive "Q:".  8. Type these commands:     cd /d Q:\windows\System32 {Enter}     move  sethc.exe  \  {Enter}     copy  cmd.exe  sethc.exe  {Enter}  9. Reboot normally. 10. When challenged for a password, tap the Shift key five times. You will see a small black screen. 11. Type these commands:     net user  {Enter}     (To see a list of all accounts that exist on your machine)     net user Administrator {Enter}     (To see if the Administrator account is active) 12. Type these commands:     net user "xxx" ppp  {Enter}     (Replace xxx with the account for which you wish to set a new password, and ppp with the new password)     net user Administrator /active:yes {Enter}     (To activate the Administrator account if desired) 13. Log on under this account, using the new password. 14. Reboot the machine into Repair Mode as per Steps 1..6 above. 15. Type these commands:     cd /d Q:\windows\System32 {Enter}     copy \sethc.exe {Enter} 16. Reboot into Windows. Instead using a Windows Repair CD in Step 2, you can use your Windows 7 Installation DVD. The steps are similar to the ones above. When the pain has subsided, suggest to your friend that a small amount of planning ahead will save her the pain next time round.  Thanks So Much Oberwald! U saved my \*\*\*\*!!
    

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2012-02-21T15:10:06+00:00

    you are a genius... thank you so much really saved my bacon. the method works great solved the problem in 5mins, after hours of trying to download working password boot disks with no success apart from attracting trojans. would recommend this to everyone.

    if anyone cant get this method to work your not doing it right, basically.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Anonymous
    2010-11-14T15:12:07+00:00

    we used a reboot disk for a laptop that has windows 7 to get into the command prompt in the other computer

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2010-11-14T08:20:45+00:00

    Hi

    No, this cannot be done. Here is more information.

    Regards,


    Ronnie Vernon MVP – Windows Desktop Experience

    This is not the full story but let's wait and see what Joe reports about the Command Prompt.

    Was this answer helpful?

    0 comments No comments