Using chntpw messes up Windows 7 registry. How to recover?

0

I have been having trouble with my Windows installation lately so I tried blanking a user's password using the Linux utility chntpw. When this did not work, I tried promoting another user to Administrator, at which point I got a warning that I may experience strange behavior because this feature is experimental and changes the Windows registry.

I used chntpw anyway, operating on the file C:\Windows\System32\config\SAM

When nothing worked, I googled around and found that Windows keeps regular copies of its registry hives in C:\Windows\System32\config\RegBackup. So I used the SAM file in there to restore user passwords to a sane (and functional) state. At this point, I could log in with my regular user account normally. Everything seemed fine until I noticed two very strange problems:

  • Explorer opens a new window for each folder even though I specifically opted for "Open each folder in the same window" in the Folder Options.
  • Most .exe files can't be run. Whenever I do that, I get a message that the file is not found. I get this same behavior even if I don't rely on the PATH variable and call the executable by absolute path from the command prompt. Now this question here and other Internet resources have suggested that this is due to a messed up registry key. I'm inclined to believe this in light of the earlier chntpw warning. The only problem is, I can't launch regedit.exe: I get the same "Not found" error.

What I have tried

  • I thought that this regular backup thing Windows does is nifty and I can thus restore all the modified registry hives from backup so I used my Linux's find to get a list of the hives I had modified today and found that these were SECURITY, SOFTWARE and DEFAULT. Restoring all of them from backup didn't help however, and here I am.

What can I do to restore my registry to a sane state so that I may run executables again?

Note

  • Some executables work. I tried mspaint, calc and cmd and all work successfully.

Joseph R.

Posted 2013-10-14T23:30:41.037

Reputation: 474

I suggest you backup your files and install a fresh windows installation and in the future take heed to the warnings – Ramhound – 2013-10-14T23:42:55.647

@Ramhound Not an option unfortunately. This is an OEM install and I have no disk for it. – Joseph R. – 2013-10-14T23:47:15.957

You can get a disk from the OEM and/or use the recovery partition – Ramhound – 2013-10-15T00:55:11.240

@Ramhound How do I go about recovering from the recovery partition? – Joseph R. – 2013-10-15T01:10:25.337

That would depend on the OEM – Ramhound – 2013-10-15T02:25:56.467

It's usually an F key, just Google around to make sure you have it and which key to use. It's often on the boot prompt screens as well. To be honest, not sure why you thought changing/removing the password would fix any problems, outside of inability to log in... – nerdwaller – 2013-10-15T04:29:12.783

@nerdwaller Thanks I'll Google it. And yes, the problem was precisely that I couldn't log in. Mouse and keyboard were dead on log in. I thought if I blanked the password, it would log in automatically and I would somehow be able to fix the problem "from the inside". It didn't help. I didn't include it in the question because I don't think it's relevant. – Joseph R. – 2013-10-15T11:08:11.920

Would have been a good first question, actually, "If I disable the windows password, will it automatically login? If not, how can I accomplish this?". Sounds like you were really addressing the wrong problem up front though. Hopefully the restore works out. – nerdwaller – 2013-10-15T12:22:08.983

@nerdwaller Thanks for the pointers. Thing is, I'm a very casual Windows user: I use GNU/Linux almost exclusively. I only keep Windows around for gaming and other Windows applications I'm forced to use for work. I'm afraid the restore might mess with my Linux partition so I may end up not doing it after all... – Joseph R. – 2013-10-15T12:26:51.190

Hopefully SteamOS fixes our shared problem of keeping Windows around for a sole use!

– nerdwaller – 2013-10-15T12:32:48.850

@nerdwaller Interesting! I'll definitely keep it in mind. Thanks for the link :) – Joseph R. – 2013-10-15T12:35:04.630

No answers