How do I reset the Windows XP Administrator password?

67,519

Solution 1

You can use Offline NT password and registry editor to reset it. You also can use Ophcrack.

Solution 2

How to reset the Windows XP Administrator password?

Follow these steps:

  1. Boot from Windows PE or Windows Recovery Environment (or use any LiveCD/USB/ ANY Windows installation disk / Anything bootable that can see NTFS/Fat32/...), and run the Command Prompt.

  2. Find the drive letter of the partition where Windows is installed. It is usually C: (Vista and XP). It could be D: under Windows 7 because the first partition contains Startup Repair and will be assigned with C:. To find the drive letter, type C: or D: and search for the Windows folder. Note that Windows PE (RE) usually resides on drive letter X.

  3. Create a backup copy of sethc.exe with this command (for later restoration):

    copy c:\windows\system32\sethc.exe c:\
    

    (replace c: with your correct drive letter if needed)

  4. Replace sethc.exe with cmd.exe:

    copy /y c:\windows\system32\cmd.exe c:\windows\system32\sethc.exe
    
  5. Reboot your computer and start the Windows installation where you forgot the administrator password

  6. After you see the login screen, press Shift five times or press on Accessibility.
    Now It will open a command prompt!

  7. Enter the following command to reset the Windows password:

    net user YOURUSERNAME NEWPASSWORD
    

    (If you don’t know your user name, just type net user to list all available user names)

You can now log on with the new password. Now you have privileges of user SYSTEM and you can do whatever you want with your current system (be careful)!

Advantages:

  1. It works with all Windows versions you can find nowadays from Windows XP to 8.1, x86 or x64, and probably it will work on earlier and newer versions too.

  2. No need to prepare anything. You can do this with any bootable media media which is in your hands at that moment. Started from MS-DOS* bootable disks and Windows installation disks to LiveCD/USB/and others.

  3. Many other programs that change password from registry are usable, but if something goes wrong, they can damage the OS. This method is safe and can't damage anything.

  4. Finally, it's free.

*Note: If it's MS-DOS bootable media, make sure it has NTFS driver (NTFS4DOS/Paragon NTFS or something like it).

Note: It works when accessibility options are enabled (5x shift, sticky keys), and its enabled by default.


And how to prevent this?

Disabling accessibility options will partially prevent this.
Partially, because it's possible to change another files/settings and achieve the same results.

Change BIOS settings and disable booting from other devices and set BIOS password. There are some hacky methods to bypass this restriction, but it's another theme. For more security, you can lock your case (really, use a real lock) to prevent BIOS reset, especially if it's a very important computer (or if you are paranoid ;)

Solution 3

Let me give my 2 cents on this question. I personally would use using KON-BOOT , it bypasses all windows password checking, so you can boot to windows and change the password. Its like a live cd that boot prior to windows and tricks it when asked for the password.

Great tool for hacking your own box (you can only change the pass, you can't see the old one)

From the site:

Kon-Boot is an prototype piece of software which allows to change contents of a linux kernel (and now Windows kernel also!!!) on the fly (while booting).

In the current compilation state it allows to log into a linux system as 'root' user without typing the correct password or to elevate privileges from current user to root. For Windows systems it allows to enter any password protected profile without any knowledge of the password.

It was acctually started as silly project of mine, which was born from my never-ending memory problems :) Secondly it was mainly created for Ubuntu, later i have made few add-ons to cover some other linux distributions.

Finally, please consider this is my first linux project so far :)

Entire Kon-Boot was written in pure x86 assembly, using old grandpa-geezer TASM 4.0.

Solution 4

This is very easy to do, but rather than explain it all here, ive found two articles that show you exactly how to do it.

This is the easiest method, but for this you need to have the Windows Setup DVD that came with you computer, if not go to the second link.
http://www.online-tech-tips.com/windows-7/forgot-lost-administrator-password-windows-7/

If you dont have the setup DVDs, then follow this link to fix it. This method requires a bit more work though, but is just as effective.
http://www.online-tech-tips.com/computer-tips/forgot-your-windows-password-how-to-recover-your-lost-password-try-login-recovery/

Solution 5

Assuming you can log on, I have read that running explorer using the at scheduler in the command prompt gives you admin rights, I haven't tried it though :)

Share:
67,519

Related videos on Youtube

Ben Turner
Author by

Ben Turner

I work with GPUs on deep learning and computer vision.

Updated on September 17, 2022

Comments

  • Ben Turner
    Ben Turner over 1 year

    I have forgotten the Administrator password of my Windows XP installation and locked out. Is there a way to reset it? I do have physical access to the PC.

  • Fredrik Mörk
    Fredrik Mörk almost 15 years
    ...and that you have admin rights...
  • Dentrasi
    Dentrasi over 14 years
    What the hell are you talking about? Many bootable CDs include Offline NT Password (pogostick.net/~pnh/ntpasswd), which takes about 2 minutes to reset a Windows password. There are plenty of other tools as well, ERD Commander includes 'Locksmith', which has a simple interface, and takes about 10 seconds to do it. Cracking a password is a last resort, and unless the password is less than 15 chars, is close to impossible. Below that, with a decent set of rainbow tables (I have a 12GB set), you've got pretty good chances, but it's not guaranteed. Windows passwords are easy to remove.
  • John T
    John T over 14 years
    This answer is very old, before I even knew about offline NT password & registry editor. I've updated my answer though.
  • tyoc213
    tyoc213 about 14 years
    pogostick.net/~pnh/ntpasswd is really great and easy to use. Thanks for the tool!
  • Mister Smith
    Mister Smith over 12 years
    KON boot is not open source. It does a very sophisticate hack to avoid reseting the psw, and because of this, I can't trust it doesn't do any other things, malicious or not. Some people says it doesn't, but who knows. Also the free version doesn't work with x64.
  • Kumar
    Kumar over 11 years
    ntpasswd didn't work for me, I have been trying to reset password of a windows xp vhd
  • gronostaj
    gronostaj almost 11 years
    Nice trick. What if I have the 5x Shift shortcut disabled - is it user-specific setting or will it affect the logon screen too, thus breaking this method?
  • Jet
    Jet almost 11 years
    5x shift is enabled by default. It opens Utility Manager which allows the user to configure through the one window the following special Accessibility features : Magnifier, Narrator, and On-Screen Keyboard).You can also use Win+U to open it.
  • nixda
    nixda almost 11 years
    +1 However, be so fair and mention your source if you copy&paste it. I have done this for you this time
  • Jet
    Jet over 10 years
    ALSO replacing Utilman.exe, OSK.exe, Magnifier.exe will do the same work.
  • Jet
    Jet over 10 years
    Yes, they can work. But as I know there is NO warranty that they will work, and NO warranty that they will not harm the system. They can crash the registry if something goes wrong...
  • user
    user over 10 years
    This is easy & clean. Worked with Windows Vista
  • Jet
    Jet about 10 years
    Yes, and works only on WinXP SP2. As I remember it couldn't work on Vista and 7...
  • Jet
    Jet about 10 years
    or at least a not "limited" user...
  • moritzebeling
    moritzebeling about 10 years
    @Jet How do I trigger Utilman.exe, OSK.exe and Magnifier.exe through keyboard shortcut in Windows Logon screen?
  • Jet
    Jet about 10 years
    @Boris_yo press Win+U and sethc will appear, then turn on magnifier or OSK...
  • CoderDennis
    CoderDennis almost 10 years
    I used this for the 2nd time today. Still amazed at how simple and easy this is. Wish I could upvote it again.