{"id":5845,"date":"2017-11-02T09:39:18","date_gmt":"2017-11-02T04:09:18","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=5845"},"modified":"2023-08-09T23:05:45","modified_gmt":"2023-08-09T17:35:45","slug":"error-0xc000012f-bad-image-fix-corrupt-files","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/error-0xc000012f-bad-image-fix-corrupt-files\/","title":{"rendered":"Error 0xc000012f &#8220;Bad Image&#8221; When Running a Program"},"content":{"rendered":"<p>When you run a program in Windows, error 0xc000012f may pop up, mentioning that the binary you&#8217;re trying to run is corrupted. Here are some examples, with the full error message verbatim:<\/p>\n<div class=\"err\">&lt;filename&gt; is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support. Error status 0xc000012f<\/div>\n<p><!--more--><\/p>\n<div class=\"err\">C:\\Windows\\System32\\schannel.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor. error: 0xc000012f<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5846\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/bad-image-error-c000012f.png\" alt=\"bad image error c000012f\" width=\"566\" height=\"282\" \/><\/p>\n<h2>What does Error Status 0xc000012f mean?<\/h2>\n<p>The error code <code>0xC000012F<\/code> means <code>STATUS_INVALID_IMAGE_NOT_MZ<\/code> or &#8220;Bad image&#8221;, which means the specified image file did not have the correct format. It did not have an initial MZ.<\/p>\n<p>Error 0xc000012f denotes that the program&#8217;s executable or one of the supporting modules is corrupt. The error <code>0xc000012f<\/code> may occur in any version of Windows, and the fixes below apply to all versions, including Windows 10\/11.<\/p>\n<div class=\"rp\"><strong>RELATED:<\/strong> <a href=\"https:\/\/www.winhelponline.com\/blog\/securityhealthsystray-bad-image-0xc000012f\/\">SecurityHealthSystray &#8211; Bad Image 0xc000012f Error<\/a><\/div>\n<h2>Resolution<\/h2>\n<h3>Fix 1: Obtain a fresh copy of the DLL<\/h3>\n<p>Obtain a fresh copy of the DLL (named in the error message) from another system that has the same version of the DLL. Copy it to the affected computer. If you can&#8217;t copy it while Windows is running, try from Safe mode or Windows RE.<\/p>\n<h3>Fix 2: Uninstall &amp; Reinstall the program<\/h3>\n<p>Uninstalling and then reinstalling the affected program helps in most cases. Be sure to have the setup file ready.<\/p>\n<p>Right-click Start, and click Run. Type <code>appwiz.cpl<\/code> and click OK.\u00a0Right-click on the program which is causing the error 0xc000012f &#8220;Bad image&#8221;, and click Uninstall.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5848\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/uninstall-program.png\" alt=\"uninstall a program via control panel\" width=\"700\" height=\"299\" \/><\/p>\n<p>(<em>In Windows 10\/11, you can also use Apps &amp; Features via the modern Settings UI to uninstall programs. Click Start, Settings, Apps &amp; Features.<\/em>)<\/p>\n<p>Note that some vendors offer &#8220;clean&#8221; uninstaller tools to remove all traces of their program completely. In most cases, the uninstaller tools are more effective than the standard uninstall routine. If the vendor has such a tool, download and run it in addition.<\/p>\n<p>Run the program&#8217;s Setup again to reinstall it. If you don&#8217;t have one, visit the software vendor&#8217;s website and download the program.<\/p>\n<div class=\"qt\">\n<h4>Winword.exe Bad Image error and gfx.dll?<\/h4>\n<p>Some users have been receiving the &#8220;Bad Image&#8221; error when launching Microsoft Word (<code>winword.exe<\/code>). Here&#8217;s the full error message:<\/p>\n<pre class=\"err\"><strong>WINWORD.EXE - Bad Image<\/strong>\r\n\r\nC:\\Program Files\\Microsoft Office\\root\\Office16\\gfx.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support. Error status 0xc000012f.\r\n\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-25676\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/winword-bad-image-error.png\" alt=\"winword.exe bad image error gfx.dll\" width=\"480\" height=\"206\" \/><\/p>\n<p>The module name is usually <code>gfx.dll<\/code>. However, you may see a different module name in the error message dialog. Also, the &#8220;bad image&#8221; error can be seen when opening Excel, Outlook, or any other <a href=\"https:\/\/www.winhelponline.com\/blog\/custom-install-uninstall-office-apps\/\">Office app<\/a>.<\/p>\n<p>The Winword.exe bad image error may be caused by one of the following antivirus programs you use:<\/p>\n<ul>\n<li>Kaspersky End Point Security (KES)\/Kaspersky Security Center\/Kaspersky Network Agent.<\/li>\n<li>McAfee antivirus software suite.<\/li>\n<\/ul>\n<p>If disabling or completely uninstalling your antivirus (for testing purposes) fixes the &#8220;bad image&#8221; error, then you may need to check with the anti-virus software vendor for support. In some cases, adding the executable to the anti-virus exclusion list may work.<\/p>\n<p>Users have indicated that completely removing all traces of McAfee\/Kaspersky and Net Agent, then rebooting and running the &#8220;<strong>Online Repair<\/strong>&#8221; of Office installation has resolved the issue that was occurring with Word\/Office.<\/p>\n<figure id=\"attachment_9813\" aria-describedby=\"caption-attachment-9813\" style=\"width: 513px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9813 size-full\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/office-repair.png\" alt=\"word .docx and .doc files show generic white icon - repair office\" width=\"523\" height=\"336\" \/><figcaption id=\"caption-attachment-9813\" class=\"wp-caption-text\">Office installation repair options<\/figcaption><\/figure>\n<\/div>\n<hr \/>\n<h3>Fix 3: Repair System Files Corruption Using DISM and SFC<\/h3>\n<p>If the DLL name mentioned is a Microsoft Windows DLL, then running the System File Checker should help.<\/p>\n<p>Open an <a href=\"https:\/\/www.winhelponline.com\/blog\/open-elevated-command-prompt-windows\/\">elevated or admin Command Prompt<\/a> window, and run\u00a0the following command:<\/p>\n<pre>sfc \/scannow<\/pre>\n<p>The System File Checker will run a thorough check of file integrity and automatically repair all corrupt system files.<\/p>\n<p>If, on the other hand, the System File Checker is unable to repair specific files, it shows the following error:<\/p>\n<div class=\"err\">Windows Resource Protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log %WinDir%\\Logs\\CBS\\CBS.log.<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5864\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/sfc-scannow-corrupt.png\" alt=\"sfc scannow cannot repair files\" width=\"643\" height=\"173\" \/><\/p>\n<p>When analyzing the <a href=\"https:\/\/support.microsoft.com\/en-in\/help\/928228\/how-to-analyze-the-log-file-entries-that-the-microsoft-windows-resourc\">CBS.log file<\/a>,\u00a0 you can find the exact file name(s) which could not be restored from the store:<\/p>\n<pre>&lt;date&gt;, Info CSI 00000008 [SR] Cannot \r\nrepair member file [l:34{17}]\"Accessibility.dll\" of Accessibility, Version = 6.0.6000.16386, pA = PROCESSOR_ARCHITECTURE_MSIL (8), Culture neutral, VersionScope neutral, PublicKeyToken = {l:8 b:b03f5f7f11d50a3a}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing<\/pre>\n<p>In that case, you need to run the DISM tool to restore the system files to the component store, and then run the System File Checker tool again if necessary.\u00a0The following is the DISM command-line you need to run:<\/p>\n<pre>DISM.exe \/Online \/Cleanup-image \/Restorehealth<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5457\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/10\/dism-restorehealth.png\" alt=\"dism online restorehealth\" width=\"649\" height=\"216\" \/><\/p>\n<p>For the command to be more effective, a better option would be to run DISM, mentioning the <code>Install.wim<\/code> image file as the source, obtained from the <a href=\"https:\/\/www.winhelponline.com\/blog\/windows-10-iso-direct-download-mct-useragent\/\">Windows ISO<\/a>. For detailed instructions, see the article <a href=\"https:\/\/www.winhelponline.com\/blog\/repair-windows-10-using-dism-sfc\/\">Repair Windows 10\/11 Using DISM and SFC.<\/a><\/p>\n<p>Restart the computer.<\/p>\n<hr \/>\n<h3>Fix 4: Perform System Restore Rollback<\/h3>\n<p>Windows 10 setup turns off System Restore by default. If you&#8217;ve already enabled System Restore, and are lucky enough to have a suitable restore point available, you may try a rollback. Be sure to select a System Restore point created when the system was stable. (i.e., before the &#8220;bad image&#8221; error first surfaced.)<\/p>\n<p>Right-click Start, and click Run.<\/p>\n<p>Type <code>rstrui.exe<\/code> and click OK.<\/p>\n<p>Pick the appropriate restore point, and roll back the system to a previous working state.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3380\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/06\/restore-point-windows-10-7.png\" alt=\"create restore point or rollback previous\" width=\"566\" height=\"459\" \/><\/p>\n<p>For instructions, see the post <a href=\"https:\/\/www.winhelponline.com\/blog\/create-restore-protection-point-rollback-windows\/\">How to Create a Restore Point and Roll-back to a Previous Restore Point<\/a>.<\/p>\n<p>I hope one of the above fixes helped you solve the error <code>0xc000012f<\/code>\u00a0(&#8220;Bad Image&#8221;), without needing to do a clean installation of Windows.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you run a program in Windows, error 0xc000012f may pop up, mentioning that the binary you&#8217;re trying to run is corrupted. Here are some examples, with the full error message verbatim: &lt;filename&gt; is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation &#8230; <a title=\"Error 0xc000012f &#8220;Bad Image&#8221; When Running a Program\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/error-0xc000012f-bad-image-fix-corrupt-files\/\" aria-label=\"Read more about Error 0xc000012f &#8220;Bad Image&#8221; When Running a Program\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7],"tags":[160,191,493,562],"class_list":["post-5845","post","type-post","status-publish","format-standard","hentry","category-windows","tag-dism","tag-error-messages","tag-sfc","tag-system-restore"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":59358,"url":"https:\/\/www.winhelponline.com\/blog\/epicgameslauncher-error-0xc000007b-0xc000012f\/","url_meta":{"origin":5845,"position":0},"title":"How to Fix Epic Games Launcher Error 0xC000007B or 0xC000012F","author":"Ramesh","date":"July 12, 2023","format":false,"excerpt":"When you run Epic Games Launcher, the error code 0xc000007b or 0xc000012f may appear. The full error message is mentioned below: EpicGamesLauncher.exe - Application Error The application was unable to start correctly (0xc000007b). Click OK to close the application. On some systems, the error code may be 0xc000012f. EpicGamesLauncher.exe -\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"file copy dll replace epicgameslauncher","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/07\/epicgameslauncher-error-fix-3.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/07\/epicgameslauncher-error-fix-3.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/07\/epicgameslauncher-error-fix-3.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":77899,"url":"https:\/\/www.winhelponline.com\/blog\/appvisvsubsystems64-0xc000012f-office\/","url_meta":{"origin":5845,"position":1},"title":"0xc000012f &#8211; AppvIsvSubsystems64.dll Error Launching Office apps","author":"Ramesh","date":"February 15, 2025","format":false,"excerpt":"When you launch Office apps such as Word, Excel, or PowerPoint, the \"Bad Image\" error appears with the error code 0xc000012f. Here's the full error message. WINWORD.EXE - Bad Image C:\\Program Files\\Microsoft Office\\root\\Office16\\AppVIsvSubsystems64.dll is either not designed to run on Windows or it contains an error. Try installing the program\u2026","rel":"","context":"In &quot;Office&quot;","block_context":{"text":"Office","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/office\/"},"img":{"alt_text":"office online repair","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2025\/02\/office-365-repair.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2025\/02\/office-365-repair.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2025\/02\/office-365-repair.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2025\/02\/office-365-repair.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":80420,"url":"https:\/\/www.winhelponline.com\/blog\/c2r64-dll-0xc000012f-office-apps\/","url_meta":{"origin":5845,"position":2},"title":"0xc000012f \u2013 c2r64.dll Error Launching Office apps","author":"Ramesh","date":"March 9, 2026","format":false,"excerpt":"When you open an Office app, such as Excel, Outlook, Word, PowerPoint, or OneNote, you may get an error message regarding the file c2r64.dll. Here are some of the errors that users encounter: WINWORD.EXE - Bad Image C:\\Program Files\\Microsoft Office\\Root\\Office16\\c2r64.dll is either not designed to run on Windows or it\u2026","rel":"","context":"In &quot;Office&quot;","block_context":{"text":"Office","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/office\/"},"img":{"alt_text":"c2r64.dll error 0xc000012f launching Office apps","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2026\/03\/c2r64-dll-0xc000012f.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":54008,"url":"https:\/\/www.winhelponline.com\/blog\/securityhealthsystray-bad-image-0xc000012f\/","url_meta":{"origin":5845,"position":3},"title":"SecurityHealthSystray.exe &#8211; Bad Image 0xC000012F Error","author":"Ramesh","date":"June 16, 2023","format":false,"excerpt":"You may be unable to access the Windows Security app on your Windows 11 computer. And when you login to your account, the following error message appears: SecurityHealthSystray: SecurityHealthSystray.exe - Bad Image \\?\\C:\\Windows\\System32\\SecurityHealth\\1.0.2303.27001-0\\SecurityHealthSSO.dll is either not designed to run on Windows or it contains an error. Try installing the program\u2026","rel":"","context":"In &quot;Windows 11&quot;","block_context":{"text":"Windows 11","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-11\/"},"img":{"alt_text":"securityhealthsso.dll 0xc000012f","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/securityhealthsso_dll_error_2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/securityhealthsso_dll_error_2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/securityhealthsso_dll_error_2.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":80358,"url":"https:\/\/www.winhelponline.com\/blog\/mfc140u-dll-missing-vc-runtime\/","url_meta":{"origin":5845,"position":4},"title":"[Fix] mfc140u.dll was not found","author":"Ramesh","date":"February 28, 2026","format":false,"excerpt":"When you open Lightroom Classic, TrafficMonitor or any other app that depends on the VC++ v14 (2015-2022) runtimes, the following error may occur: The code execution cannot proceed because mfc140u.dll was not found. Reinstalling the program may fix the problem. RELATED: VC++ Redist for Visual Studio 2015 - 2022 (List\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"mfc140u.dll vc++ redist runtime error 0xc000012f","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2026\/02\/mfc140u_dll_0xc000012f.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2026\/02\/mfc140u_dll_0xc000012f.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2026\/02\/mfc140u_dll_0xc000012f.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":59457,"url":"https:\/\/www.winhelponline.com\/blog\/how-to-fix-pwrshsip-dll-bad-image-error\/","url_meta":{"origin":5845,"position":5},"title":"How to Fix Pwrshsip.dll &#8220;Bad Image&#8221; Error","author":"Ramesh","date":"July 15, 2023","format":false,"excerpt":"When you run a program, especially an Adobe app, the following error may occur: [program.exe] - Bad Image C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\pwrshsip.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"pwrshsip.dll bad image error","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/07\/pwrshsip_error_0xc0000020.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/07\/pwrshsip_error_0xc0000020.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/07\/pwrshsip_error_0xc0000020.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/5845","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=5845"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/5845\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=5845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=5845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=5845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}