Question : CMD.EXE 0xc0000142 error in Windows 7

I have 2 Windows 7 machines that display this message on startup, I assume executing the domain startup script, and any time we access a command prompt (cmd.exe).

"The application was unable to start correctly (0xc0000142).  Click OK to close the application."

I have tried replacing cmd.exe from a working system, tried running "As administrator" which has not worked.  I have found articles saying run SFC /SCANNOW but it requires the cmd window to run.

Answer : CMD.EXE 0xc0000142 error in Windows 7

I spent a couple hours this morning and came up with a solution.  SFC requires access to a working cmd.exe even if run from the Sart/Run command, which I didn't have, even in safe mode.  So I rebooted using F8 to get to the safe mode options and select the first Repair option above safe mode.  

From there I selected Command Prompt at the bottom choice.  This gave me a working cmd.exe window and I then had to run SFC /SCANNOW with the /OFFBOOTDIR=D:\ and /OFFWINDIR=D:\windows.   If you don't use use these extra options it tries to run SFC on the current repair session of Windows which appears to be running on a RAM disk under X:\., which of course doen't repair anything.
Random Solutions  
 
programming4us programming4us