when i try to open the cmd.exe. a box pops up with the message of cmd.exe error windows 7 the application was unable to start correctly (0xc0000142). Click ok to close the application. my pc was infected with surabaya virus and rootkit and removed it with Avast free anti virus and malwarebytes, spybot, but after this i am unable to open some files like windows defender and some system files.

  • It sounds like the tools improperly removed the infection. Without access to a command prompt your problem cannot be solved. The only real solution is to install a fresh instance Windows.
    – Ramhound
    Jan 6, 2015 at 13:33
  • if you have configured system backup and restore,try to do the restore with the latest version of the backup which would give the error-free installation
    – BDRSuite
    Jan 6, 2015 at 13:38
  • Find if conhost.exe present in system32 or syswow64 folder.
    – Biswapriyo
    Aug 3, 2017 at 8:13

2 Answers 2


I have read this began for some users after a Windows Update in Nov 2014. It seems to be a conflict with Geforce Experience (Nvidia graphics cards) and the Win Update. Uninstalling Geforce experience has worked for many people. Perhaps Nividia are aware of the issue and have released a new driver by now - worth checking.


if it happens for all programs there is something wrong with your registry and you must see this link


otherwise, follow these steps

Go to Start and type msconfig

Right-click and select System Configuration

Select the Service tab and click Hide all Microsoft Services then click Disable all.

Click Startup tab within the System Configuration dialog box.

Select Open Task Manager

Within the Startup tab of Task Manager, select Disable for each Startup item, then close Task Manager.

Click OK on the Startup tab of System Configuration.

Restart your computer.

hope it helps

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .