How to Kill "Bad Image" Messages Using Regedit

Microsoft Windows comes with hundreds of files that the operating system needs in order to function properly. If the message "Bad Image: The Application or DLL <File Name> Is Not a Valid Windows Image" pops up when you use Regedit, or the Registry Editor, the associated system file is either missing or corrupt. System File Checker is a built-in tool that replaces system files as necessary; you can use SFC to recover the missing application or dynamic link library and stop "Bad Image" messages from appearing.

Things You'll Need

  • Windows DVD
Show More

Instructions

    • 1

      Restart the computer. Press "F8" when the boot screen appears, to load the advanced startup options. Use the arrow pad to scroll to Safe Mode. Press "Enter."

    • 2

      Click "Start" and then select Run, or press the "Windows" and "R" keys simultaneously. Type "cmd" without quotes into the dialogue box, and then press "Enter" to open Command Prompt.

    • 3

      Input "sfc /scannow" into Command Prompt, and then press "Enter" to scan the computer for missing or corrupt system files.

    • 4

      Click "Start" and then select Run if an error occurs while you're running SFC. Type "%windir%\logs\cbs" into the dialogue box, and then press "Enter" to open the cbs folder in Windows Explorer.

    • 5

      Right-click CBS.log. Point to Open With and then select Notepad. Review the document to find which file or files SFC was unable to recover.

    • 6

      Insert the Windows 7 DVD into the disk drive, and then open the i386 folder. Enter the name of a file—excluding the extension—into the search box.

    • 7

      Select the file. Use the results in CBS.log to find the full file path for the file. Return to Command Prompt.

    • 8

      Enter the following into Command Prompt:

      takeown /f c:\<file location>\<file name>
      icacls <file location>\<file name> /grant administrators:f

      Replace <file location> with the appropriate file path, as indicated in CBS.log, then replace <file name> with the full name of the file, including the file extension. Press "Enter" after each command. If Windows is unable to locate the file, move on to the next step.

    • 9

      Type "copy <DVD> <file location>" into Command Prompt, without the quotes. Replace <DVD> with the full file path linking to the appropriate file. Press "Enter" to restore the missing or corrupt file.

    • 10

      Restart the computer after copying over each file you restore to stop "Bad Image" messages from appearing.

Related Searches:

References

Comments

Related Ads

Featured