PDF download Download Article PDF download Download Article

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 retrieve a password that has been lost, but there are several ways to set a brand new password for any user on the system, even the administrative account.

Method 1
Method 1 of 5:

Resetting a Password as an Administrator

PDF download Download Article
  1. 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. A text box will appear.
    Advertisement
  3. This will open a command prompt window.
  4. 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. 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.
  6. Advertisement
Method 2
Method 2 of 5:

Using a Windows XP CD

PDF download Download Article
  1. 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. 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]
    • If the computer boots up without asking you to press a key, then the Windows XP CD you’re using isn’t bootable.
    • 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. This will open a command prompt.
  4. 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.
  5. Advertisement
Method 3
Method 3 of 5:

Booting into Safe Mode with Command Prompt

PDF download Download Article
  1. 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. 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. 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. Type the magic command: net user at the command prompt, and press Enter .
  5. 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.
    • 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. 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.
  7. Advertisement
Method 4
Method 4 of 5:

Booting from a Linux CD

PDF download Download Article
  1. Ubuntu is recommended by experts. [3] 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. 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. This will open the location bar. [4]
  4. Make sure you type all 3 slashes (/). A list of hard drives will appear.
  5. 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. 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. [5] You’ll be entering a series of commands into this terminal window, and they are all case sensitive.
  8. 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. Do not type a slash, "/", in front of the word Windows. The directory names and path is case sensitive here.
  10. 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. Press Enter , then y to confirm that you want to erase the password.
  12. 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.
  13. Advertisement
Method 5
Method 5 of 5:

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

PDF download Download Article
  1. 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.
    • 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.
    • If you don’t have an enclosure, you could also put the hard drive in the other PC .
    • 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. With the computer turned off and unplugged, open the case and disconnect the hard drive.
  3. Alternatively you could open the second PC and install it.
  4. 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. Press Win + E to open the File Explorer.
    • 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:\Windows\Documents and Settings\User, where “User” is the name of your user.
    • 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. While you haven’t recovered the password, you’ve copied the user’s files so they haven’t lost any data.
  7. Advertisement

Expert Q&A

Search
Add New Question
  • Question
    What's the best way to keep track of my different passwords?
    Luigi Oppido
    Computer & Tech Specialist
    Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years.
    Computer & Tech Specialist
    Expert Answer
    You can either write your passwords down in a notebook and store the notebook someplace safe, or you can use a password manager. With a password manager, you'll just need to remember one master password.
  • Question
    How do I reset my password on a Windows XP Vista without a start menu?
    Jessica Reyna
    Community Answer
    Go to Control Panel, User Accounts, and then click on your account. Changing your password will be an option on your account screen.
  • Question
    How do I put a laptop in safe mood?
    Community Answer
    It depends on what system it is -- you have to have multiple options from f8 to Del button to booting into it. Other than that, if it is in reference to security, make sure you add a password or check fingerprint options on the computer system.
See more answers
Ask a Question
      Advertisement

      Tips

      Show More Tips
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • Accessing a user’s files when you aren’t supposed to could get you into big trouble.
      Advertisement

      About This Article

      Thanks to all authors for creating a page that has been read 1,145,907 times.

      Is this article up to date?

      Advertisement