[SOLVED] schtasks.exe application error. 0xc0000142 (error message that appear on shutdown and restart of my W10 PC)

Epsilons

Distinguished
Aug 21, 2012
7
0
18,510
I'm running Windows 10 version 2004 (OS build : 19041.546) with all the latest update installed and I receive the following error message when I shutdown or restart my computer :

Code:
schtasks.exe - Application Error

The application was unable to start correctly (0xc0000142).

Click OK to close this application.

jZoRWSS.jpg


AFAIK, schtasks.exe = Task Scheduler (Windows Administratives Tools)

What could be the cause of that? How do I get rid of that error message pretty please?

I tried those commands in the Windows PowerShell with no success :
  • DISM.exe /Online /Cleanup-image /Restorehealth
  • sfc /scannow

According to Google :
Application Error 0xc0000142 is caused by a malfunction or a corruption with the program you're trying to use.

I'M TIRED OS SEEING THIS ISSUE EVERYTIME I RESTART OR SHUTDOWN MY PC.
PLEASE SEND HELP !
 
Solution
it could be java but surely that has been fixed since 2008?

Try a clean boot and see if it changes anything - make sure to read instructions and make sure NOT to disable any microsoft services or windows won't load right - https://support.microsoft.com/en-au/help/929135/how-to-perform-a-clean-boot-in-windows

if clean boot fixes it, it shows its likely a startup program. You should, over a number of startups. restart the programs you stopped to isolate the one that is to blame.

shutdown can be effected by startup programs if you have fast startup on. Since its on by default, I could assume you do.

gardenman

Splendid
Moderator
I seen your other posts on the net (Microsoft and reddit I think).

Do you have Java installed?
Reference: http://www.pcmemoirs.com/2008/12/28/schtasks-exe-error-shutdown-windows-vista/

It could be that a task is corrupted and needs to be re-created (or disabled). Open Task Scheduler and look through each one of the tasks. Look at the "Triggers" column. Look for something like this:
On remote disconnect from any user session
or
On remote disconnect from user session of (my user account)
If you see any, investigate that specific task. Consider temporarily disabling it (if it's not one created by Microsoft).
 

Colif

Win 11 Master
Moderator
it could be java but surely that has been fixed since 2008?

Try a clean boot and see if it changes anything - make sure to read instructions and make sure NOT to disable any microsoft services or windows won't load right - https://support.microsoft.com/en-au/help/929135/how-to-perform-a-clean-boot-in-windows

if clean boot fixes it, it shows its likely a startup program. You should, over a number of startups. restart the programs you stopped to isolate the one that is to blame.

shutdown can be effected by startup programs if you have fast startup on. Since its on by default, I could assume you do.
 
Solution