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: Most helpful
  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
    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