How to fix (cmd.exe) The application was unable to start correctly(0xc0000142) error?

salihcan çepur 5 Reputation points


Whenever I start my pc, I get this error and I couldn't find any solution to solve it. Could you please help me?

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,919 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Reza-Ameri 16,861 Reputation points

    Open start and search for cmd or Command prompt and right click and run as administrator and then type the following commands:

    sfc /scannow

    DISM /Online /Cleanup-Image /CheckHealth

    DISM /Online /Cleanup-Image /ScanHealth

    DISM /Online /Cleanup-Image /RestoreHealth

    Share the result of the scan and see if that solve the problem.

  2. Abdessalem Amari 10 Reputation points

    Startup Repair is a built-in Windows utility that tries to diagnose and fix any PC problems. To use Startup Repair, first, trigger the "Your PC did not start correctly" screen, then select Advanced options instead of Restart.

    Go to Troubleshoot > Advanced options > Startup Repair. Log into your user account and let the process complete. Restart and see if you’re now able to boot into Windows.

  3. Mahmood Mahdi 0 Reputation points

    I solved this by temporarily disabling windows defender and apparently it detected conhost as malicious. conhost.exe → console host So it kept on crashing when command prompt launched. I fixed it by simply unquarintining conhost.

    This may have happened as I modify my installation of windows heavily. And the cause of this is by using a program called Rectify11. Basically, it makes the windows UI consistent.

    There is a similar thread to this issue:

    0 comments No comments