How to Retrieve Passwords in Windows XP

While Microsoft no longer officially supports the operating system, there are still plenty of computers across the world that still run Windows XP. What happens when a user on one of these systems loses their password? There's no way to...
Method 1 of 5:

Resetting a Password as an Administrator

  1. How to Retrieve Passwords in Windows XP Picture 1How to Retrieve Passwords in Windows XP Picture 1
    Log in as an administrator. Accounts that have administrative privileges can change any other user's password. You can do this if you can use the username and password for an administrator's account to log in with admin privileges).[1]
  2. How to Retrieve Passwords in Windows XP Picture 2How to Retrieve Passwords in Windows XP Picture 2
    Open the Start menu and click 'Run.' A text box will appear.
  3. How to Retrieve Passwords in Windows XP Picture 3How to Retrieve Passwords in Windows XP Picture 3
    Type cmd into the text box and press Enter. This will open a command prompt window.
  4. How to Retrieve Passwords in Windows XP Picture 4How to Retrieve Passwords in Windows XP Picture 4
    Type net user [Username]*. For example, net user Wiki * (if 'Wiki' is the account that needs a new password). Make sure there is a space between * and the username as shown, then press Enter.
  5. How to Retrieve Passwords in Windows XP Picture 5How to Retrieve Passwords in Windows XP Picture 5
    Type a new password, then press Enter. You'll be asked to confirm the password by typing it again. Once the password is confirmed, it can be used to access the account.
Method 2 of 5:

Using a Windows XP CD

  1. How to Retrieve Passwords in Windows XP Picture 6How to Retrieve Passwords in Windows XP Picture 6
    Insert your Windows XP CD into your CD-ROM drive. This method will only work if you have a bootable Windows XP CD. If it's an original Windows XP CD then it will be bootable. If it's a burned CD, it may not boot, but there's no way to know unless you try.
  2. How to Retrieve Passwords in Windows XP Picture 7How to Retrieve Passwords in Windows XP Picture 7
    Reboot your computer. When the computer restarts, you'll see a message that says 'press any key to boot from disk.' Press a key on the keyboard.[2]
    1. If the computer boots up without asking you to press a key, then the Windows XP CD you're using isn't bootable.
    2. You can borrow Windows XP CD from someone (or have someone burn you a bootable copy). It doesn't have to be the same CD that came with this version of Windows.
  3. How to Retrieve Passwords in Windows XP Picture 8How to Retrieve Passwords in Windows XP Picture 8
    Press the R key to 'repair' your installation.
  4. How to Retrieve Passwords in Windows XP Picture 9How to Retrieve Passwords in Windows XP Picture 9
    Press Shift+F10 when the screen says 'Installing Devices.' This will open a command prompt.
  5. How to Retrieve Passwords in Windows XP Picture 10How to Retrieve Passwords in Windows XP Picture 10
    Type NUSRMGR.CPL and then press Enter. This will open the User Account Control Panel, where you will be able to reset any password by selecting a user and adding a new password.
Method 3 of 5:

Booting into Safe Mode with Command Prompt

  1. How to Retrieve Passwords in Windows XP Picture 11How to Retrieve Passwords in Windows XP Picture 11
    Find an existing Administrator username to use if possible. There is no password set by default on the administrator account, so this can work unless someone has already configured a special password for the Administrator account. In some cases, there will be no password assigned yet.
  2. How to Retrieve Passwords in Windows XP Picture 12How to Retrieve Passwords in Windows XP Picture 12
    If you need a password, assign one to any existing username while in the "safe mode with command prompt": Restart the computer while tapping the required, special key to activate the startup menu. To find the special key for your computer, try tapping a key rapidly while rebooting. Try Esc or F2 or F8 or F10 and watch for the menu to show up on a black screen (if you don't know that special key). (Alternatively: unplug the electrical cord of your computer while it is running -- wait about 10 second -- then replug it. Now boot it again, and it will usually display a startup menu to choose normal or safe mode for startup.)
  3. How to Retrieve Passwords in Windows XP Picture 13How to Retrieve Passwords in Windows XP Picture 13
    Select 'Safe Mode with Command Prompt.' Quickly use the and keys to highlight your selected choice. You have a limited time to read, choose it and to press Enter to begin your chosen startup process -- or else it will boot up normally, if so try again.
  4. How to Retrieve Passwords in Windows XP Picture 14How to Retrieve Passwords in Windows XP Picture 14
    Retrieve a list of all of the users/accounts on the computer. Type the magic command: net user at the command prompt, and press Enter.[3].
  5. How to Retrieve Passwords in Windows XP Picture 15How to Retrieve Passwords in Windows XP Picture 15
    Select the username to be assigned the new password. Type, for example, net user Wiki 12345678 where 'Wiki' is the existing username needing a password by, for example, typing 12345678 to create your new password you chose (12345678). Now, press Enter to continue.
    1. Instead of retyping a command you can edit it, to correct it: Use F3 to bring back your last command, and edit it using and cursor keys and the Delete and Backspace and type your correction and press Enter.
  6. How to Retrieve Passwords in Windows XP Picture 16How to Retrieve Passwords in Windows XP Picture 16
    Type shutdown –r when you are ready to restart your computer. The computer will restart normally, and the user whose password you've changed will now be able to log in with your newly assigned password.
Method 4 of 5:

Booting from a Linux CD

  1. How to Retrieve Passwords in Windows XP Picture 17How to Retrieve Passwords in Windows XP Picture 17
    Boot the machine with a 'live' version of Linux. Ubuntu is recommended by experts. [4] A 'live' version allows you to boot into Linux without installing it. Put the disk into your CD Rom drive and restart the computer. When prompted to 'press any key to boot from CD,' press any key.
  2. How to Retrieve Passwords in Windows XP Picture 18How to Retrieve Passwords in Windows XP Picture 18
    Access the live Linux desktop. Depending on the version of Linux you're using, you may be prompted to choose a version to use. Choose 'Live' or 'Try Linux' to access the Linux desktop.
  3. How to Retrieve Passwords in Windows XP Picture 19How to Retrieve Passwords in Windows XP Picture 19
    Press Ctrl+L. This will open the location bar.[5]
  4. How to Retrieve Passwords in Windows XP Picture 20How to Retrieve Passwords in Windows XP Picture 20
    Type computer:/// and press Enter. Make sure you type all 3 slashes (/). A list of hard drives will appear.
  5. How to Retrieve Passwords in Windows XP Picture 21How to Retrieve Passwords in Windows XP Picture 21
    Mount the Windows drive. Right-click on the hard drive that contains your Windows installation and select 'Mount.' If there's only one hard drive in the machine, it will be the drive that doesn't say 'System Reserved.'
  6. How to Retrieve Passwords in Windows XP Picture 22How to Retrieve Passwords in Windows XP Picture 22
    Double-click the Windows drive. Now look at the top of the screen where you previously typed computer:///. Write down (or copy) the full path that now appears in that window. You'll need it in a minute.
  7. How to Retrieve Passwords in Windows XP Picture 23How to Retrieve Passwords in Windows XP Picture 23
    Press Ctrl+Alt+T to open the command prompt.[6] You'll be entering a series of commands into this terminal window, and they are all case sensitive.
  8. How to Retrieve Passwords in Windows XP Picture 24How to Retrieve Passwords in Windows XP Picture 24
    Enter the Windows drive through the terminal. Type cd /path/to/windows/drive where '/path/to/windows/drive' is the full path that you previously wrote down or copied. Press Enter to continue.
  9. How to Retrieve Passwords in Windows XP Picture 25How to Retrieve Passwords in Windows XP Picture 25
    Type cd Windows/System32 and press Enter. Do not type a slash, "/", in front of the word Windows. The directory names and path is case sensitive here.
  10. How to Retrieve Passwords in Windows XP Picture 26How to Retrieve Passwords in Windows XP Picture 26
    Install and run the 'chntpw' tool. Type in sudo apt-get install chntpw and press Enter to install. Once you are returned to the command prompt, type sudo chntpw –u username SAM. Replace the word 'username' with the account name of the Windows user whose password you want to erase, and remember that everything is case-sensitive. Press Enter to show a list of options.
  11. How to Retrieve Passwords in Windows XP Picture 27How to Retrieve Passwords in Windows XP Picture 27
    Press 1 to clear the user's password. Press Enter, then y to confirm that you want to erase the password.
  12. How to Retrieve Passwords in Windows XP Picture 28How to Retrieve Passwords in Windows XP Picture 28
    Reboot into Windows. Press the 'power' icon at the top right of the screen to reboot the computer. Boot into Windows first removing the Linux CD. When the Windows login screen appears, you can now log in to the affected account without a password.
Method 5 of 5:

Accessing Files Without a Password by Putting the Hard Drive in Another PC

  1. How to Retrieve Passwords in Windows XP Picture 29How to Retrieve Passwords in Windows XP Picture 29
    Understand the process. Use this method if you're unable to get the user's password with other methods. This method won't allow you to find or reset the password, but you can access the user's files so that their data is not lost. You'll need administrative access to another Windows computer for this to work.
    1. You will be temporarily removing the hard drive from the Windows XP PC and installing it in the second PC. To use this method, you'll need to have some familiarity with removing a hard drive from a PC as well as putting a hard drive in an external USB hard drive enclosure.
    2. If you don't have an enclosure, you could also put the hard drive in the other PC.
    3. If the computer with the missing password is a laptop, the instructions are similar, except you'll definitely need an external hard drive enclosure to connect a laptop hard drive to a desktop computer (and vice-versa).
  2. How to Retrieve Passwords in Windows XP Picture 30How to Retrieve Passwords in Windows XP Picture 30
    Remove the hard drive from the Windows XP computer with the missing password. With the computer turned off and unplugged, open the case and disconnect the hard drive.
  3. How to Retrieve Passwords in Windows XP Picture 31How to Retrieve Passwords in Windows XP Picture 31
    Put the hard drive into an external drive enclosure and connect it to the other PC. Alternatively you could open the second PC and install it.
  4. How to Retrieve Passwords in Windows XP Picture 32How to Retrieve Passwords in Windows XP Picture 32
    Boot the second PC and log in with its Administrator account. Because you're logged in as an administrator and have the other hard drive connected to the computer, you now have access to everything on the other hard drive.
  5. How to Retrieve Passwords in Windows XP Picture 33How to Retrieve Passwords in Windows XP Picture 33
    Copy any data you need from the Windows XP hard drive to the second PC. Press Win+E to open the File Explorer.
    1. The second hard drive will show under 'Computer' or 'This PC,' depending on the version of Windows you are using. Double-click this drive and navigate to the user's files, which are located in C:WindowsDocuments and SettingsUser, where 'User' is the name of your user.
    2. Press Win+E again to open a second instance of the File Explorer, which will make it simple to drag files from your user's directory to the second computer. You can drag the files anywhere, including a flash drive.
  6. How to Retrieve Passwords in Windows XP Picture 34How to Retrieve Passwords in Windows XP Picture 34
    Put the drive back into the original computer. While you haven't recovered the password, you've copied the user's files so they haven't lost any data.
4 ★ | 1 Vote