Ошибка 142 cmd

RRS feed

  • Remove From My Forums
  • Question

  • Since the update of windows 10 to version 1703 (OS Build 15063.296) the following command typed into cmd.exe:

    start «» «cmd.exe /c start /b more.com <nul»

    causes error 0xC0000142 (not always but most times).

    This breaks some of my installed applications when they want to start other programs.

Answers

  • The problem seems to be fixed with Cumulative Update KB4025342 from July 11 2017!

    • Marked as answer by
      asking_man
      Wednesday, July 12, 2017 10:34 AM

All replies

  • Did you mean that exact command the whole line?

    If I put;

    cmd.exe /c start /b more.com <nul

    That give three blank lines (approx.) but does not error. Does this happen on multiple machines for you?

  • The better command line is (the double quotes are important):

    start cmd.exe /c «start /b more.com <nul»

    you can also use:

    start cmd.exe /c «start /b mode.com con»

    This happens on all (two) machines I updated to 1703. On 1607 (and Windows 7) machines this works.

    more.com is only a placeholder for any program, but since it is provided by Microsoft, I used this.

    This currently breaks my Siemens SCADA system from working.

    • Edited by
      asking_man
      Wednesday, May 10, 2017 9:04 PM

  • Ok thanks. The start cmd.exe /c «start /b mode.com con» does give the error once in a while. Look for a work-around I would say.

  • Thanks so far.

    When I attach windbg to the failed process, I get the following information:

    0:000> k
    Child-SP          RetAddr           Call Site
    000000c1`7667f328 00007ff9`424301c0 ntdll!NtRaiseHardError+0x14
    000000c1`7667f330 00007ff9`4244a4c7 ntdll!LdrpInitializationFailure+0xab968
    000000c1`7667f370 00007ff9`423f9b2b ntdll!_LdrpInitialize+0x50987
    000000c1`7667f3f0 00007ff9`423f9ade ntdll!LdrpInitialize+0x3b
    000000c1`7667f420 00000000`00000000 ntdll!LdrInitializeThunk+0xe
    0:000> lm
    start             end                 module name
    00007ff6`da820000 00007ff6`da82c000   more       (deferred)            

    00007ff9`42380000 00007ff9`4255b000   ntdll      (private pdb symbols)  d:arsymbolsntdll.pdb41D57AE3B178CDF490C0B78265127E9B1ntdll.pdb

    Unloaded modules:
    00007ff9`3fab0000 00007ff9`3fb5e000   KERNEL32.DLL
    00007ff9`3f4f0000 00007ff9`3f739000   KERNELBASE.dll

    • Edited by
      Karen_HuMicrosoft contingent staff
      Thursday, May 11, 2017 6:10 AM
  • Hi,

    I’ve checked the syntax, and it seems ok for me.

    The stuff with the command line is already a deep analysis of how my SCADA system is starting its child processes and reduces the things to the main problem.

    Here is a snipped from a little C++ program I’ve written to reproduce the error:

    STARTUPINFOW si;
    PROCESS_INFORMATION pi;
    memset(&si, 0, sizeof si);
    si.cb = sizeof si;
    wchar_t* pszCmd = L"cmd.exe /c start /b mode.com con";
    BOOL isSuccess = CreateProcessW((wchar_t*)0, pszCmd, NULL, NULL, FALSE, CREATE_NEW_CONSOLE, NULL, NULL, &si, &pi);
    

    This works on Windows 7 and Windows 10 1607 but on Windows 10 1703 I get error 0xC0000142. Our Siemens SCADA Software is currently not working on Windows 10 1703 because it cannot start its child processes.

  • The 0xC0000142 maps to STATUS_DLL_INIT_FAILED, and the cmd error code 9059.

    More interestingly,

    C:UsersAdmin>start "" "%comspec% /c start /b more.com <nul"

    results in

    [Window Title]
    C:WINDOWSsystem32cmd.exe /c start /b more.com <nul

    [Content]
    Windows cannot find ‘C:WINDOWSsystem32cmd.exe /c start /b more.com <nul’. Make sure you typed the name correctly, and then try again.

    [OK]
    But only because of the missing closing parenthesis.

    Incorrect

    C:UsersAdmin>start "" "%comspec% /c start /b more.com <nul"

    Your example misses the second parenthesis.

    Correct

    C:UsersAdmin>start "" "%comspec%" /c start /b more.com <nul"
    C:UsersAdmin>start "" "C:windowssystem32cmd.exe" /c start /b more.com <nul"

    either works fine, or throws 0xC0000142 for ‘more’/’mode’.

    —————————
    mode.com — Application Error
    —————————
    The application was unable to start correctly (0xc0000142). Click OK to close the application. 
    —————————
    OK   
    —————————

    Temporary solution, it seems, would be to specify the direct path to the cmd interpreter and to use quotes for cmd. Moreover, once you specify the full path, all subsequent commands in the same cmd session can be run directly by using %comspec%
    or cmd.exe without having to provide the full path.


    Well this is the world we live in And these are the hands we’re given…

    • Edited by
      Exotic Hadron
      Thursday, May 11, 2017 9:54 AM

  • You have an additional quote in the second command line at column 38, if you add this quote to your first given command line the behavior is the same.
    The first command line I have given at the thread start [start «» «cmd.exe /c start /b more.com <nul»] was incorrect. It must be [start «» «cmd /c start /b more.com <nul»]. Please use the better command line from
    my first reply [start cmd.exe /c «start /b more.com <nul»]. The problem is not to get the command line running — it is the third party software, that uses such child process creating methods.

  • You have an additional quote in the second command line at column 38, if you add this quote to your first given command line the behavior is the same.
    The first command line I have given at the thread start [start «» «cmd.exe /c start /b more.com <nul»] was incorrect. It must be [start «» «cmd /c start /b more.com <nul»]. Please use the better command line from
    my first reply [start cmd.exe /c «start /b more.com <nul»]. The problem is not to get the command line running — it is the third party software, that uses such child process creating methods.

    Why are you using this syntax while invoking external application:

    start "" "command <params>"

    instead of using

    start "" "command" <params>"

    Also, the terminating quote does not seem to play any role since you are terminating with the NUL device. Both commands work fine to me:

    C:UsersAdmin>start "" "cmd" /c start notepad <nul"
    
    C:UsersAdmin>start "" "cmd" /c start notepad <nul


    Well this is the world we live in And these are the hands we’re given…

  • The command lines are only for reproduction of the problem that exists in our third party software in compiled binary form. Up to now this software works fine but fails on Windows 10 Version 1703.

  • Initially, you’ve stated that

    «more.com is only a placeholder for any program, but since it is provided by Microsoft, I used this.»

    so I thought you are expecting issues specifically with ‘start’ and not with CreateProcess().


    Well this is the world we live in And these are the hands we’re given…

  • The command lines are only for reproduction of the problem that exists in our third party software in compiled binary form. Up to now this software works fine but fails on Windows 10 Version 1703.

    Could
    this be your case?


    Well this is the world we live in And these are the hands we’re given…

  • Sorry, no. The problem is that it was working on Windows 7 and Windows 10 Version 1607 and on Windows 10 Version 1703 it’s not working.

  • Hi,

    Based on the test result, it’s indeed like what you said.

    Please submit this feedback via the built-in Feedback App. And I will also submit it via our own channel.

    Hope it would be fixed soon.


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact
    tnmff@microsoft.com.

  • Hi, Thanks for your answer.

    I’ve submitted the problem using «Feedback Hub».

  • What are the odds you got any feedback to you feedback??

    We’ve got an app that spawns a console app and had utilized the AllocConsole() API prior to the CreateProcess() call in the parent process.
    Exactly the same thing is happening to us on the machines that updated to creators.
    I can also utilize you start /b methodology to get the same effect..

    This had worked for years, think it had something to do with io redirecting for logging at the time..

    Simply removing that AllocConsole() / FreeConsole() pair got our stuff going again..
    Though I need to work through the repercussions of that..

    If you’ve got anymore insight that’d be great.

  • I’ve got no comment on my feedback on «Feedback Hub» yet,

    and I have not the possibility to modify my third party (Siemens) software to get it running again — like you — and sorry I haven’t any more details for you. It had worked all the times up to creators update. I think I’ve to wait til Microsoft fixes it or
    Siemens has a workaround for it. By the way «start /b» is used by the software to create detached processes.

    Here’s the story I’ve posted on «Feedback Hub»:

    Title: Child processes created with the command «cmd /c start /b» and the flags CREATE_NO_WINDOW or CREATE_NEW_CONSOLE failed to start with error 0xC0000142

    Description: My third party SCADA software creates its detached child processes with the command line «cmd /c start /b app.exe». This ends up in an API call to CreateProcess(0, «cmd /c start /b app.exe», 0, 0, FALSE, CREATE_NO_WINDOW,
    0, 0, &si, &pi). This can be easily reproduced with the command «start cmd.exe /c start /b mode.com con» in a command window. Since the update to Windows 10 version 1703 (10.0.15063) every newly created process is terminated with error 0xC0000142
    so my SCADA software isn’t running anymore.

    • Edited by
      asking_man
      Wednesday, June 21, 2017 5:36 PM

  • The problem seems to be fixed with Cumulative Update KB4025342 from July 11 2017!

    • Marked as answer by
      asking_man
      Wednesday, July 12, 2017 10:34 AM

  • #1

Ноут eMashines eMD443
CPU AMD c-50 (1гГц)
RAM 2 Gb
Windows 7 SP1

Перестали запускаться многие программы, при запуске cmd.exe выдаёт ошибку приложения oxc0000142. Ошибки при запуске многих программ.
С помощью cureit и Malwarebyts удалили много вирусов и троянов (удалялись по умолчанию, выбор программ не меняли).
Error142

Пробовал лечить создал тему, удалил много вирусов, не помогло, порекомендовали обратиться сюда.

  • Error142.GIF

    Error142.GIF

    7.7 KB
    · Просмотры: 145

  • #2

Немного неправильную информацию дал.

Cureit не сканирует!
Бегает «по кругу», всю ночь ждал, ни одного файла не проверил!

shestale


  • #4

Последнее редактирование модератором: 23 Сен 2014

Dragokas


  • #5

Последнее редактирование: 23 Сен 2014

Кирилл


  • #7

Это я сделал

2. Выполните проверку целостности системных файлов. Отчет о проверке прикрепите в этой теме, упаковав в архив формата ZIP.

А с этим сложнее! Я же писал, что

при запуске cmd.exe выдаёт ошибку приложения oxc0000142

Соответственно и все консольные приложения не запускаются, к ним же относится и проверка целостности системных файлов sfc /scannow

Эти сделаю завтра и отправлю!

Dragokas


  • #8

А с этим сложнее! Я же писал, что

упс… Прошу прощения.

Тогда: пожалуйста, нажмите пуск и в поисковой строке наберите:

затем нажмите одновременно комбинацию клавиш: Ctrl + Shift + Enter.
После окончания сканирования, откройте папку c:windowsLogsCBS
Файл CBS.log скопируйте на рабочий стол и затем заархивируйте в архив формата ZIP и приложите к сообщению.

  • #9

упс… Прошу прощения.

Тогда: пожалуйста, нажмите пуск и в поисковой строке наберите:
затем нажмите одновременно комбинацию клавиш: Ctrl + Shift + Enter.

Ещё раз напоминаю, любые консольные приложения НИКАК не запускаются!!!
Ни из под пользователя, ни из под админа!!!

Опять ошибка 0xc0000142

Вот логи от GetSystemInfo

EventLog Errors не запускается, та же ошибка 142

  • GetSystemInfo_РОМАН-ПК_Роман_2014_09_24_09_35_32.zip

    381.3 KB
    · Просмотры: 1

Кирилл


regist


  • #11

Вот логи от GetSystemInfo

PovAndy, прочитайте инструкцию до конца нужна ссылка.

shestale


Кирилл


  • #13

PovAndy, по порядку:
Удалите следующие продукты

  • Malwarebytes Anti-Malware
  • AVAST Software
  • Avira

Затем выполните перезагрузку,дочистите остатки антивирусов по этой инструкции:
http://safezone.cc/threads/chistka-sistemy-posle-nekorrektnogo-udalenija-antivirusa.58/

Затем снова перезагрузка и уже по новой установите только один антивирусный продукт.

Проверьте наличие проблемы.+ Нажмите потом правой кнопкой на мой компьютер, управление, просмотр событий, журналы Windows.
Затем откройте Журналы windows.
На каждом журнале правой кнопкой мыши — очистить журнал.

Upload 2014 9 24 21 7 4

Затем перезагрузка и еще раз

Как сделать исследование утилитой GetSystemInfo.

  • #14

Спасибо!Попробую!
А то я уже решил переустановить на ХР

Последнее редактирование: 29 Сен 2014

  • #15

Получил комп в руки! (До этого только по удалёнке с ним работал)
Зашел в режим восстановления системы, sfc /scannow запустился, но тут же предложил перезагрузить комп и повторить запуск. Перегрузился и… та же песня «Перегрузите комп и запустите повторно…»

Попробовал пройтись стандартным восстановлением, зашел в режим восстановления системы, (ERD), запустил авто-поиск проблем. Минут 15 система лопатила винду.
И ЧУДО! После перезагрузки заработал cmd.exe и другие проги стали работать без ошибок!

Почистить винду от авиры смог только в безопасном режиме.

Всем спасибо за помощь! (Уже собрался переустанавливать…)
Что-то, для закрепления лечения винды, ещё надо делать?

Последнее редактирование: 1 Окт 2014

Кирилл


  • #17

Потому что в среде восстановления,давайте по новой из под системы:
Проверка целостности системных файлов утилитой sfc

В обычном режиме сделал, никаких изменений, всё норм.

Как выполнить тестирование диска с помощью HD Tune?

Это обязательно?
Вроде всё сейчас работает!

Я думал надо повторно антивирусами проверить или на последние обновления протестировать. (Может ещё что-то)

Если это важно, то тоже сделаю!

Последнее редактирование: 2 Окт 2014

Кирилл


  • #18

Это обязательно?
Вроде всё сейчас работает!

Это для того,что бы понять причину,источник.
Дополнительная диагностика.

Если вам оно не нужно — то не надо.
Просто сообщите.

  • #19

Пока нет возможности проверить.
Если получится, я отпишусь!

Спасибо за помощь, сейчас всё работает!

Jun. 24, 2022 / Updated by
Bessie Shaw to
Windows 10

Recently, lots of users encounter the 0xc0000142 error or Cmd error after the Windows 10 upgrade. Windows 10 is never free from various error codes, such as 0x0000003B System_Service_Exception error, 0x0000007b error, error code 0x000000D1, etc. In this case, when you try to launch the Command Prompt or other applications via the cmd.exe, or when you shut down the computer, the 0xc0000142 error message will appear on the screen, which says:

The Application was unable to start correctly (0xc0000142)

application-0xc0000142-cmd-error.png

What can you do to make the computer work properly again when encountering such cmd error on Windows? Let’s continue the reading.

How to Fix Windows 10 Cmd Error 0xc0000142

To fix the 0xc0000142 error on Windows 10, you could try the top 7 methods below:

Method 1. Run a Virus Scan on the Computer

Virus or malware can result in 0xc0000142 cmd error, so if you have anti-virus program installed on Windows 10, run it and perform a scan to see if there are those troublemakers. If so, try to clean them up in safe mode.

Method 2. Completely Register .dll to Fix Windows 10 Cmd Error 0xc0000142

Run cmd.exe as fast as you can when you enter Window 10 and register .dll completely. Sometimes, this will work for fix the 0xc0000142 application error.

1. When you enter Windows 10, right click on the Start menu and select Command Prompt (Admin).

2. Paste the command line below to the dialog box and hit the Enter:

for %1 in (%windir%system32*.dll) do regsvr32.exe /s %1

Note: Do this as quickly as you can before Windows 10 finishes all the startups loading.

register-dll-to-fix-windows-10-cmd-error-0xc0000142.png

3. Wait for a while until it ends the rolling screen and register .dll completely. Then Restart your PC.

See if you can launch Command Prompt or other applications via cmd.exe now.

Method 3. Remove Programs Installed Recently

0xc0000142 error is related to some programs. If you’ve newly installed some programs, software of applications, try removing them one by one to see if the 0xc0000142 application error still persists.

1. Uninstall Adobe Flash

Some users reported when they uninstalled the Adobe Flash and reinstalled it, the 0xc0000142 error was fixed successfully.

2. Uninstall NVIDIA GeForce Experience

Try to uninstall the Experience, which won’t affect the running of NVIDIA graphics.

3. Check the Drivers

Uninstall and then reinstall drivers you recently updated, for instance, NVIDIA driver, to help fixing the cmd error.

Note: You can use Driver Talent, the one-click driver problems solution, to reinstall all your drivers instantly. Click the Download button below to have one and do a free scan for your computer now.

Download Now

Method 4. Perform a Clean Boot on Windows to Fix 0xc0000142 Error

If the problem still persists when you apply Method 3 above, you can also place the system in Clean Boot and check out the exact programs or services that result in 0xc0000142 cmd error.

For more information about Windows Clean Boot, see: How to Use Windows 10 Clean Boot to Fix PC Errors

Method 5. Modify the Registry

If some programs were not deleted thoroughly, it will also cause the 0xc0000142 error and make the cmd.exe unable to start correctly. You can enter the Registry Editor to clean up the segments.

1. Use Window shortcut keys Win + R to launch Run.

2. Type regedit into the dialog box and hit the key Enter.

3. Go to the following location in the pop-up Registry Editor:

HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun

4. Delete the segments of the programs from the right column.

5. Close the Window and restart the PC to see if this works.

Note: If you are not that technical in computer, it is not recommended to modify the Registry in case serious PC problems occur, like 100% disk usage, mouse and keyboard not working, slow boot issue, etc.

Method 6. Modify Local Group Policy

1. Use Windows Shortcut keys Win + R to launch Run.

2. Type gpedit.msc into the dialog box and press Enter.

3. When the Local Group Policy Editor pops up, expand the entry User Configuration and Administrative Templates. Then highlight the entry System.

enter-local-group-policy-editor-to-fix-0xc0000142-cmd-error.png

4. Navigate to Prevent access to command prompt in the setting menu from the right column, and then right click on it to select Edit.

edit-prevent-access-to-command-prompt-to-fix-0xc0000142-cmd-error.png

5. Choose No Configured or Disable.

set-disable-no-configured-to-fix-0xc0000142-cmd-error.png

This will fix the 0xc0000142 cmd error and make the Command Prompt available.

Note: Windows 10 Home edition has no access to the Local Group Policy.

Method 7. Restore or Reinstall Windows 10

If all of the methods above fail to resolve the 0xc0000142 cmd error on your Windows 10, you may consider restoring or reinstalling the Windows. Though it is a trouble for you to do that, it will really kill the headache and release the pain.

1. Restore Windows 10

Open System Properties to check if you’ve create any system restore points before. Or you can use the restore point created by Driver Talent to do this.

For more information about restoring Windows 10, see How to Use System Restore to Fix Windows 10 Issues

2. Reinstall Windows 10

Reinstalling Windows is not easy, and click here to learn how to reinstall Windows 10 and fix the 0xc0000142 application error thoroughly.

Hope this article can help you fix the 0xc0000142 cmd error and make your Command Prompt run properly again. If you have any other Windows 10-related issues, check for the solutions in Windows 10 Issues and Fix section on this site. You can also comment below if you have any questions.

Recommended Download

Driver-Talent

ExplorerMax

DownLoad_DT_Net Driver Talent for Network Card
Smart and advanced file explorer tool for Windows platforms Download & Install Network Drivers without Internet Connection
30-day
Free Trial
Free
Download

After installing windows update, you may suddenly start getting error code 0xc0000142. This error can stop you from launching several applications, you may get program not responding error message or cmd.exe application error. Here, in this article, I will explain all the possible causes and their effective solutions. You may get one of the following error messages:

cmd.exe – Application Error. The application was unable to start correctly (0xc0000142). Click OK to close the application.

0xc0000142

How to Fix Windows Error 0xc0000142

Method 1: Fix Using Advanced System Repair Tool

The most of the common reason behind application error 0xc0000142 is corrupted or damaged system files like DLL files, EXE files, sys files etc. There are thousands of tiny system files are there that work specific task. If one of the files gets replaced, deleted or damaged then you may get error 0xc0000142.

Windows is made with huge number of dll files, exe files, sys files, various types of services, databases, etc so, it is not possible to keep monitoring all the files always. A brilliant PC Optimizer tool repairs damages, fix errors, update windows and drivers, and eliminate various types of errors silently.

Outbyte PC Repair Tool does all the above task easily and provides you an errorfree and smooth Windows environment to work so that you can focus on your business only.

3 Steps to Fix this Error

Step 1. Download Outbyte PC Repair Tool [File Size: 16.4 MB]
Step 2. SCAN your Windows PC
Step 3. Click Fix button to Repair Error

Download and Install Advanced System Repair Tool and scan your PC. It has the large database with 25 million of files. It will find all the damaged or deleted system files and reinstall them with the fresh one. After, optimizing with Advanced System Repair Tool, try to launch the program.

Method 2: Run System File Checker Tool

The topmost reason behind 0xc0000142 is corrupted or missing system files. System files may be sys file, ocx file, dll file, exe file, inf file and other types of files. If some of these files gets damaged, corrupted or replaced by other third party software, then system starts crashing frequently and sending application error. You can run System File checker tool as follows:

1. Open Command Prompt as Administrator
CMD-Command
2. Run following commands in command prompt

sfc /scannow

3. Close the command windows and try to launch the software again.

Method 3: Corrupted Registry File

Registry File is the very important component in Windows OS that keeps information and configuration of all the installed software, hardware and driver. If this file has some corrupted or incorrect entries then this file may behave troublesomely. In order to fix this issue, you can restore registry file from registry backup. If you haven’t created a registry backup before, then use Advanced System Repair Tool to repair registry problems. It scans whole registry entries in few minutes and repairs the entries.

Changes Registry Entries Manually (Not Recommended)

However, this method is not recommended but if you feel confident in editing registry entries, then you can try this method. It is strongly recommended keeping a backup of registry file before applying this method.

1. Open Run windows by pressing Windows Key + R. Type regedit.exe and press Enter.
2. Go to the following location:

HKLMSOFTWAREMicrosoftWindows NTCurrentVersionWindowsAppInit_Dlls

3. Right click on it and select Edit
4. Now double click on LoadAppInit_DLLs and change the DWORD value from 1 to 0.
5. Close Registry Editor and Make a Restart.
6. Now try to launch the application or install updates. You will not get 0xc0000142 error again.

Method 4: Try Clean Boot Mode.

Clean boot mode disables all the third party application and services and allows you to run the program in a clean environment. You can start your PC In clean boot mode in following detailed article.

Step by Step Guide to Start Windows in Clean Boot Mode

Method 5: Fix compatibility issues of application

There might be chances that your PC is not fulfilling the minimum requirement of the installed application. The application which you are trying to run and getting an error message must check the minimum system requirement of the application. Check the 32-bit and 64-bit compatibility issues, memory issues, graphic memories issues, Disk free space issues etc.

Method 6: Restore Operating System

As I mentioned above that this error is strongly associated with a corrupted system file, A simple system restore may fix 0xc0000142 easily.

1. Go to Start > All Programs > Accessories > System Tools and then click System Restore.
2. In the next window select “Restore my computer to an earlier time” option and click next.
3. Select the latest backup and restore.
4. Reboot your PC and if you are lucky then you have fixed 0xc0000142.

Summary

The error “cmd.exe – Application Error. The application was unable to start correctly (0xc0000142). Click OK to close the application.” occurs due to corrupted system files, damaged registry files, missing dll files etc. If you have a good system optimizer tool like Advanced System Repair Tool, then you can fix error 0xc0000142 yourself.

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

Понравилась статья? Поделить с друзьями:

Не пропустите эти материалы по теме:

  • Яндекс еда ошибка привязки карты
  • Ошибка 141 приора
  • Ошибка 1417 visio
  • Ошибка 141 опель астра h
  • Ошибка 1416448 фольксваген

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии