How to fix Error 217 on Windows 11

Troubleshooting Guide: Error 217 – “The image file %1 is signed, unable to modify”

Why This Error Happens

Error 217 occurs when an application or process attempts to modify, patch, or write to a digitally signed executable (EXE) or DLL file. Windows enforces code integrity checks on signed binaries, and any attempt to alter their contents—whether by malware, a faulty patcher, third-party injection software, or a corrupted update process—breaks the digital signature and triggers this protection mechanism. This is most commonly seen when antivirus tools, game trainers, DLL injectors, or software crackers try to hook into a signed system file, or when a Windows Update or driver installation is interrupted mid-write.

Step-by-Step Resolution Guide

  1. Identify the offending file and process
    Check the exact file path referenced in the error (the %1 placeholder). Open Event Viewer (eventvwr.msc) → Windows Logs → Application, and look for Event ID 217 to see which file and process triggered it.

  2. Run System File Checker (SFC) to repair the signed file
    Open Terminal (Admin) and run:

   sfc /scannow

This restores the original signed version of the file from the Windows component store if it was partially modified.

  1. Run DISM to repair the underlying system image
    If SFC reports it cannot fix all issues, run:
   DISM /Online /Cleanup-Image /RestoreHealth

This repairs the WinSxS store that SFC relies on, ensuring a clean signed copy is available.

  1. Terminate or uninstall the third-party tool causing the write attempt
    If the error stems from a specific application (e.g., a game modding tool, injector, or unofficial patch), close it via Task Manager and uninstall it through Settings → Apps → Installed apps. These tools frequently attempt unauthorized writes to signed .exe/.dll files, which Windows blocks.

  2. Check and reset file/folder permissions
    Right-click the affected file → Properties → Security → Advanced, and ensure TrustedInstaller or SYSTEM retains ownership. If ownership was changed by a third-party tool, reset it:

   takeown /f "C:\Path\To\File.exe" /a
   icacls "C:\Path\To\File.exe" /reset

Alternative or Verification Steps

  • Verify the fix: Re-run sfc /scannow and confirm it reports “Windows Resource Protection did not find any integrity violations.” Then relaunch the application that previously triggered Error 217.
  • Alternative fix: If the file is part of a corrupted third-party install (not a core Windows file), uninstall and reinstall that application from an official, signed installer rather than attempting manual repair.