{"id":78009,"date":"2025-03-02T16:20:12","date_gmt":"2025-03-02T10:50:12","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=78009"},"modified":"2026-03-09T12:16:09","modified_gmt":"2026-03-09T06:46:09","slug":"0xc0000142-cmd-powershell-sfc-dism","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/0xc0000142-cmd-powershell-sfc-dism\/","title":{"rendered":"Error 0xC0000142 Launching CMD, PowerShell, SFC, or DISM"},"content":{"rendered":"<p>When you start PowerShell or Command Prompt, the error code 0xc0000142 may appear. Any console tool, such as <a href=\"https:\/\/www.winhelponline.com\/blog\/repair-windows-10-using-dism-sfc\/\">sfc.exe or dism.exe<\/a> may throw the same error.<!--more--><\/p>\n<pre class=\"err\">The application was unable to start correctly (0xc0000142). Click OK to close the application.\r\n<\/pre>\n<div class=\"rp\"><strong>SIMILAR:<\/strong> <a href=\"https:\/\/www.winhelponline.com\/blog\/sfc-0xc0000017-error\/\">[Fix] Error 0xc0000017 when running DISM or SFC<\/a><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-78010\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2025\/03\/0xc0000142-cmd-powershell.png\" alt=\"0xc0000142 error when launching cmd.exe or powershell.\" width=\"395\" height=\"323\" \/><\/p>\n<h2>Cause<\/h2>\n<p>This happens if <strong>c:\\windows\\system32\\conhost.exe<\/strong> is missing.<\/p>\n<p>Error code 0xC0000142 (&#8220;STATUS_DLL_INIT_FAILED&#8221;) means &#8220;<em>{DLL Initialization Failed} Initialization of the dynamic link library %hs failed. The process is terminating abnormally.<\/em>&#8221;<\/p>\n<p>This might happen if an antimalware program has deleted the file due to a false positive.<\/p>\n<h2>Resolution<\/h2>\n<p>To resolve the issue, you can do one of the following:<\/p>\n<p><strong>Option 1)<\/strong> Boot into <a href=\"https:\/\/www.winhelponline.com\/blog\/access-windows-recovery-environment\/\">Windows RE<\/a> and run SFC offline with the logging option. See if it restores conhost.exe successfully. See <a href=\"https:\/\/www.winhelponline.com\/blog\/run-sfc-offline-windows-10-7-vista\/\">How to Run System File Checker (SFC) Offline<\/a>.<\/p>\n<p><strong>Option 2)<\/strong> Source conhost.exe from another computer running the same OS build number. You can check the <a href=\"https:\/\/www.winhelponline.com\/blog\/find-windows-10-build-version-edition-bit\/\">OS build and version<\/a> number by running winver.exe.<\/p>\n<p><strong>Option 3)<\/strong> You can also download Windows modules using the information in the article \u2192 <a href=\"https:\/\/www.winhelponline.com\/blog\/download-missing-system-files-dll-exe-sys-from-microsoft-site\/\">How to Download Missing System files (dll, exe, sys) from Microsoft<\/a>\u00a0or extract it <a href=\"https:\/\/www.winhelponline.com\/blog\/extract-files-windows-10-iso-dvd-install-wim\/\">from the Windows ISO<\/a> using 7-Zip.<\/p>\n<p>After obtaining a fresh copy of conhost.exe, copy the file to <code><strong>C:\\Windows\\System32<\/strong><\/code>. If conhost.exe already exists (albeit corrupted) in that location, take ownership of that file using the &#8220;Security&#8221; tab in properties. Then, replace the file.<\/p>\n<div class=\"rp\"><strong>RELATED:<\/strong> <a href=\"https:\/\/www.winhelponline.com\/blog\/netsh-exe-error-0xc0000142-shutdown\/\">Fix: Netsh.exe Error 0xc0000142 at Shutdown<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>When you start PowerShell or Command Prompt, the error code 0xc0000142 may appear. Any console tool, such as sfc.exe or dism.exe may throw the same error.<\/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":[8,869],"tags":[106,191],"class_list":["post-78009","post","type-post","status-publish","format-standard","hentry","category-windows-10","category-windows-11","tag-command-prompt","tag-error-messages"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":75873,"url":"https:\/\/www.winhelponline.com\/blog\/netsh-exe-error-0xc0000142-shutdown\/","url_meta":{"origin":78009,"position":0},"title":"Fix: Netsh.exe Error 0xc0000142 at Shutdown","author":"Ramesh","date":"July 9, 2024","format":false,"excerpt":"When you shut down or restart the computer, the netsh.exe error may appear. The full error message is below: netsh.exe - Application Error The application was unable to start correctly (0xc0000142). Click OK to close the application. The error is caused by the Samsung Quick Share application (quickshareservice.exe). It launches\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":"samsung quick share uninstall - apps & features","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/07\/samsung-quick-share-uninstall.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/07\/samsung-quick-share-uninstall.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/07\/samsung-quick-share-uninstall.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/07\/samsung-quick-share-uninstall.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":31441,"url":"https:\/\/www.winhelponline.com\/blog\/error-0x800703e6-998-dism-windows-update\/","url_meta":{"origin":78009,"position":1},"title":"Errors 0x800703e6 (998) in DISM and Windows Update","author":"Ramesh","date":"January 2, 2023","format":false,"excerpt":"Symptoms Installing Windows Updates results in the error 0x800703e6 on a Windows 10 or 11 computer. The user is unable to install new updates or uninstall a previously installed update. Attempting to repair (in-place upgrade) the Windows installation using the Media Creation tool or the Update Assistant tool may fail\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":"cbscore.dll corrupt - file information","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/01\/cbscore-dll-corrupted.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":74574,"url":"https:\/\/www.winhelponline.com\/blog\/windows-11-home-to-pro-0x80070490\/","url_meta":{"origin":78009,"position":2},"title":"[Fix] Windows 11 Home to Pro Upgrade Error 0x80070490","author":"Ramesh","date":"March 26, 2024","format":false,"excerpt":"Earlier, we saw how to upgrade Windows 11 Home Edition to Pro Edition. The Home to Pro upgrade can be purchased via the Microsoft Store app. However, some users encounter the error code 0x80070490 when upgrading from Home to Professional. We can't activate Windows on this device right now. You\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":"windows 11 home to pro upgrade error 0x80070490","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/03\/0x80070490-home-to-pro-upgrade-error-2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/03\/0x80070490-home-to-pro-upgrade-error-2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/03\/0x80070490-home-to-pro-upgrade-error-2.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":31285,"url":"https:\/\/www.winhelponline.com\/blog\/wlan-autoconfig-error-193-0xc1-wlansvc\/","url_meta":{"origin":78009,"position":3},"title":"WLAN AutoConfig Service Error 193 0xC1 (WlanSvc)","author":"Ramesh","date":"December 26, 2022","format":false,"excerpt":"You may not be able to connect to Wi-Fi networks on your system because the WLAN AutoConfig (WLansvc) service fails to start. Attempting to start the service results in error 193 0xC1 Let's see how to fix this error. Windows could not start the WLAN AutoConfig service on Local Computer.\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":"wlansvc error 193 0xc1 - sfc scanfile","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/12\/wlansvc-error-193-sfc-scanfile.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/12\/wlansvc-error-193-sfc-scanfile.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/12\/wlansvc-error-193-sfc-scanfile.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":28839,"url":"https:\/\/www.winhelponline.com\/blog\/cant-open-cmd-after-uninstalling-python-anaconda\/","url_meta":{"origin":78009,"position":4},"title":"Can&#8217;t Open CMD.exe After Uninstalling Python\/Anaconda; Exit Code 1","author":"Ramesh","date":"September 29, 2022","format":false,"excerpt":"After uninstalling Python\/Anaconda on your Windows computer, Command Prompt may not open. When you run cmd.exe, it flashes on the screen and immediately quits. Also, running DISM and SFC (to repair corrupt system files), repairing Windows installation, and running a thorough malware scan may not fix the issue. Also, when\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"vscode cmd.exe error 1","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/09\/vscode-cmd-error-code-1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":59457,"url":"https:\/\/www.winhelponline.com\/blog\/how-to-fix-pwrshsip-dll-bad-image-error\/","url_meta":{"origin":78009,"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\/78009","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=78009"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/78009\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=78009"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=78009"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=78009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}