Fixing SAM and SAM.LOG without disk

Snowy Hug 0 Reputation points
2026-06-23T20:13:01.3533333+00:00

My friend asked me to help with their dead dad's old Windows XP Media Center Edition 2002 computer so that they can get the family photos stored onto it. From what they told me in their efforts the booted it in Safe Mode Command Prompt without logging in and "accidentally" deleted the SAM and SAM.log files from there and since then whenever you get to a login screen an error pops up reading "Security Accounts Manager initialization failed because of the following error: A device attached to the system is not functioning. Error Status 0xc0000001." and there is no options to even attempt a login and without being able to log in I am having trouble trying to get administrator privileges to fix this. I have the disc for the device but whenever the disc is entered all keyboards plugged in gets shut off and I cant hit the keys to repair it. Can anyone help so that I can give them their family photos or will I need to find a new method.
Edit: In case people were wondering they have a Sata hard drive on Raid mode and my computer cant read it's files

Windows for home | Previous Windows versions | Performance and system failures
0 comments No comments

1 answer

Sort by: Most helpful
  1. Carl-L 21,320 Reputation points Microsoft External Staff Moderator
    2026-06-24T07:26:37.1466667+00:00

    Hello Snowy Hug,

    Welcome to Microsoft Q&A forum.

    The issue you see is actually expected when the SAM registry hive has been deleted. The login screen shows an error because there is no database to begin with.

    Before we proceed, may I know what it says when you try to read the SATA drive on your computer? And may I know if there are any other drive in the computer?

    Regarding the disc issue, based on your description, I believe that the computer is quite old. So modern USB-C keyboard might not work since the BIOS don't have any support for it. May I know if you have tried a PS/2 keyboard instead?

    I'm waiting for your reply.

    Was this answer helpful?

    10+ people found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.