How to fix Error 218 on Windows 11

Troubleshooting Guide: Error 218 – “The Image File %1 Is Strong Signed, Unable to Modify”

Why This Error Happens

This error occurs when a tool or process attempts to modify a binary file (EXE or DLL) that has been cryptographically signed with a strong name signature or Authenticode digital signature. Windows blocks the modification because altering even a single byte would invalidate the signature, and the OS’s Windows Resource Protection (WRP) or the .NET runtime enforces this integrity check. It commonly appears when using tools like editbin.exe, resource editors, patchers, or custom deployment scripts that try to inject resources, change headers, or patch a signed system/application file in place.

Step-by-Step Resolution Guide

  1. Identify the exact file referenced by %1 in the error message. Check the Event Viewer log (Windows Logs → Application, Event ID 218) for the full file path.

  2. Remove or bypass the strong-name signature before editing (only for files you own/build):

  • If it’s your own compiled assembly, use the Strong Name tool to disable verification temporarily:

    sn.exe -Vr <path-to-file>
  • This is available via the Visual Studio Developer Command Prompt (sn.exe ships with the Windows SDK, typically under C:\Program Files (x86)\Windows Kits\10\bin\<version>\x64\).
  1. Re-sign the file after modification instead of editing the signed binary directly:
  • Make your changes to an unsigned copy of the source binary.
  • Re-sign it using signtool.exe:

    signtool sign /f "YourCert.pfx" /p YourPassword /fd SHA256 "C:\Path\To\File.exe"
  1. If the file is a Windows system file, do not attempt to modify it. Instead:
  • Run sfc /scannow from an elevated Command Prompt to restore the original protected file if it appears corrupted.
  • Use DISM to repair the underlying image if SFC fails:

    DISM /Online /Cleanup-Image /RestoreHealth
  1. Check the application/installer causing the error and update it. Many third-party installers or patch tools trigger Error 218 because they use outdated APIs (e.g., BeginUpdateResource) that don’t account for signed binaries. Contact the vendor for a version compatible with Windows 11’s signature enforcement, or exclude the signed file from its patch routine.

Alternative or Verification Steps

  • Verify the fix: Right-click the file → Properties → Digital Signatures tab, and confirm the signature is valid (or absent, if intentionally removed) before retrying the operation that triggered Error 218.
  • Alternative workaround: If modification is required for testing/development only, copy the file to a working directory, strip the signature there, edit it, and reference the copy — leaving the original signed production file untouched.