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

salihcan çepur 5 Reputation points
2023-05-27T10:43:57.45+00:00

error

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 for business | Windows Client for IT Pros | User experience | Other
{count} votes

3 answers

Sort by: Most helpful
  1. Reza-Ameri 17,341 Reputation points Volunteer Moderator
    2023-05-28T16:11:47.1033333+00:00

    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
    2023-05-28T16:38:54.0433333+00:00

    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
    2024-01-31T19:27:00.96+00:00

    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: https://answers.microsoft.com/en-us/windows/forum/all/unable-to-open-command-prompt-error-the/55121768-0b56-4770-8991-005986c38db3

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.