Task Scheduler will often not close after using


  1. Posts : 47
    Windows 10 Professional 64-Bit
       #1

    Task Scheduler will often not close after using


    Windows 10 ver22H2 Build 19045.3803

    I have a problem with Task Scheduler in Windows 10. I have had this problem for months so it is not specific to the current version and build of Windows 10.

    Problem - I can open Task Scheduler and then close it with no problem, but if I open a Task by double-clicking on it and then close the Task, the Task Scheduler will not close. It continues to be displayed, but clicking on anything in it, including the X to close it, does nothing. The only way I can get it to close is to open Task Manager, click on the drop-down arrow next to Microsoft Management Console, then right-click on Task Scheduler and select End Task. The first time I do this both the Microsoft Management Console and Task Scheduler say Not Responding. When I click End Task a second time, both Task Scheduler and the Microsoft Management Console close. A reboot also works.

    I have also noticed that this does not always happen. Sometimes I can open Task Scheduler, double-click on a Task to open it, close the Task, and then close Task Scheduler with no problem. Most times, Task Scheduler will not close after opening and closing a Task. I don't see any pattern to it like it only happens with running Tasks.

    I have tried running dism commands scanhealth and restorehealth but no problems are found. Any ideas are appreciated.

    Thanks,
      My Computer


  2. Posts : 315
    Windows 10
       #2

    Task Scheduler is always running, as there are many tasks that are triggered by it with or without you. Outside of that there might be an instance, program, executable, that is triggering it to run over and over till the point where you notice it. Like something that should not be running unless you started the instance.
      My Computer


  3. Posts : 43,010
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #3

    Some ideas (1-3):
    4 Ways to Fix the Windows 10 Task Scheduler When It Malfunctions

    If you create a new user for test purposes and log in as that user, do you see the same behaviour?

    If not, the problem is specific to your user profile, and the differences may help you determine a cause. Further, that shows that general Windows repairs such as an in-place upgrade repair install, DISM commands etc will be unlikely to help.

    If you do, it's still possible that there's something running or some setting or registry change that is responsible that's common to both users.

    Also, using the original user account, perform a clean boot. Do you still see the same problem?

    Have you used any registry cleaners, 'privacy' tools or the like?
    What sort of tweaks have you used?

    Thanks.
    Last edited by dalchina; 24 Dec 2023 at 16:12.
      My Computers


  4. Posts : 47
    Windows 10 Professional 64-Bit
    Thread Starter
       #4

    Daymin said:
    Task Scheduler is always running, as there are many tasks that are triggered by it with or without you. Outside of that there might be an instance, program, executable, that is triggering it to run over and over till the point where you notice it. Like something that should not be running unless you started the instance.
    Thanks for your response. I understand that Task Scheduler is always running. I am referring to the window that opens when I click on Start and type Task Scheduler. It opens fine but will not close after I double-click on a Task and then close the Task. After doing that, the Task Scheduler window does not close. If I hover the cursor over the X in the upper right-hand corner, the X turns red but when I click it to close the Task Scheduler panel nothing happens. It also does not respond when I click on anything in it including the menu items at the top, the Tasks in the center pane, and the Actions in the right side pane. If I hover the cursor over an Action (like Create Task), the cursor changes from an arrow to a hand with the index finger extended, but when I click on the Action, nothing happens. The cursor changing when I hover over these areas of the Task Manager panel seems to indicate that it is "there" and Windows reacts to hovering over these buttons, but clicking them does nothing.

    - - - Updated - - -

    dalchina said:
    Some ideas (1-3):
    4 Ways to Fix the Windows 10 Task Scheduler When It Malfunctions

    If you create a new user for test purposes and log in as that user, do you see the same behaviour?

    If not, the problem is specific to your user profile, and the differences may help you determine a cause. Further, that shows that general Windows repairs such as an in-place upgrade reapir install, DISM commands etc will be unlikely to help.

    If you do, it's still possible that there's something running or some setting or registry change that is responsible that's common to both users.

    Also, using the original user account, perform a clean boot. Do you still see the same problem?

    Have you used any registry cleaners, 'privacy' tools or the like?
    What sort of tweaks have you used?

    Thanks.
    Thanks for your response. I tried the fixes at the link you provided but I was not able to do #3 which says to rename the Registry Key Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree. When I tried to rename this key I got a pop-up that says "The Registry Editor cannot rename Tree. Error while renaming key." I tried this on a different machine that does not have this problem and was not able to rename this key there either. I ran the DISM commands in #4 again - no corruption was found.

    I always log in as Admin but I do have a regular user account. I will try logging into that account and see if the problem exists there.

    I do use CCleaner on occasion, including its Registry cleaner. I know many people frown on this and say Registry cleaners are not necessary and can cause more problems than they solve, but I have used CCleaner for years and never had a problem (maybe until now).

    I don't recall exactly when this started but it was several months ago. Windows 10 has been updated many times since then. I have a task that starts HWINFO that I manually update when HWINFO releases a new beta. They release beta updates at least once a month, so that is how often I open Task Scheduler. I keep a detailed log of every OS, program, and driver update I install. When this first happened I should have noted it and checked my log for recent changes, but unfortunately, I did not. At first, I would reboot to get rid of it but then I realized that I could open Task Manager, select Microsoft Management Console / Task Scheduler, right-click, and select End Task (twice). Doing this closes the Task Scheduler window but the root problem remains.
      My Computer


  5. Posts : 43,010
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #5

    Thanks.
    I got a pop-up that says "The Registry Editor cannot rename Tree. Error while renaming key
    You might try using
    PowerRun v1.6 (Run with highest privileges)
    - back up appropriately beforehand, use with caution.

    I do have a regular user account. I will try logging into that account and see if the problem exists there.
    Note this is not the same as creating a new user account NOW but worth trying as a first step.
      My Computers


  6. Posts : 47
    Windows 10 Professional 64-Bit
    Thread Starter
       #6

    dalchina said:
    Thanks.


    You might try using
    PowerRun v1.6 (Run with highest privileges)
    - back up appropriately beforehand, use with caution.


    Note this is not the same as creating a new user account NOW but worth trying as a first step.
    Thanks again. I will check out Power Run and yes I will use caution. The first thing I did was back up the Registry. Using Power Run scares me a little because if renaming that key is not allowed there may be a good reason. I assumed that renaming it would result in a new Tree key being generated. I will make a Restore Point before trying this. I will also try making a new user account. Thanks again for your suggestions, and happy holidays!

    Edit to add - PowerRun allowed me to rename the Registry key to Tree.old. After renaming the key, Task Scheduler would not open until after a reboot. When I rebooted, clicking on Start and typing REG did nothing so I had to go to Windows Administrative Tools to run Regedit. As I suspected, a new Tree key was in the Registry but it only had a few things under it. Task Scheduler opened OK but there were only a few Tasks in it. Many of the Tasks that should be there were not. Also, the problem persisted in Task Scheduler, so this procedure did not fix the root problem. So I ran PowerRun again and renamed the new Tree Key Tree.DEL and renamed the Tree.Old key back to Tree. Rebooted again and all the Tasks are back in Task Scheduler.

    I will try making a new user account next.
    Last edited by Speedy IV; 24 Dec 2023 at 16:54.
      My Computer


  7. Posts : 43,010
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #7

    Once you've done that and if it behaves the same way, the most likely solution seems to be an in-place upgrade repair install which like any 'upgrade' procedure keeps all progs and data

    See possibly similar:
    https://answers.microsoft.com/en-us/...1-a8208d792b8b
      My Computers


  8. Posts : 47
    Windows 10 Professional 64-Bit
    Thread Starter
       #8

    dalchina said:
    Once you've done that and if it behaves the same way, the most likely solution seems to be an in-place upgrade repair install which like any 'upgrade' procedure keeps all progs and data

    See possibly similar:
    https://answers.microsoft.com/en-us/...1-a8208d792b8b
    Well at least I am not the only person that has encountered this issue. In my case, just opening Task Scheduler does not cause the problem. I can open it and then close it. The problem occurs after I double-click on a task to open it. I have also noticed that it does not happen when I open some tasks but I have not figured out if opening some tasks always causes the problem while opening other tasks never causes the problem, so I don't know if the problem is limited to a specific group or type of task. There are a lot of tasks so it would take quite a bit of time to try them all.

    Anyway, the final solution to run the Media Creation Tool seems like the Nuclear option. I don't think I have ever done the Upgrade this PC with the Keep personal files and apps option. I have always done clean installs of Windows and then reinstalled all programs, which takes many hours. I will definitely do a full backup to an external drive before trying this. Thanks again for your help.
      My Computer


  9. Posts : 43,010
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #9

    I assume you see the same thing happen with a new user account.

    Many many threads end with an in-place upgrade repair install.
    Repair Install Windows 10 with an In-place Upgrade

    I've posted the 4 steps to start it scores of times.

    I will definitely do a full backup to an external drive before trying this.
    Good idea- I hope you mean a 3rd party disk image of all your O/S partitions.

    Somewhere there'll be a magical fix - which is what everyone wants for free .. but when there's no readily accessible fix, it's actually quicker to do the routine thing.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 15:58.
Find Us




Windows 10 Forums