Windows 10: Windows 10 Pro rel. 2004 Task Scheduler suddenly stopped running batch files

Discus and support Windows 10 Pro rel. 2004 Task Scheduler suddenly stopped running batch files in Windows 10 BSOD Crashes and Debugging to solve the problem; Beginning about four days ago, all three of my Windows 10 machines stopped running batch files scheduled in the Task Scheduler. These batch files had... Discussion in 'Windows 10 BSOD Crashes and Debugging' started by mschmieg, Oct 8, 2020.

  1. mschmieg Win User

    Windows 10 Pro rel. 2004 Task Scheduler suddenly stopped running batch files


    Beginning about four days ago, all three of my Windows 10 machines stopped running batch files scheduled in the Task Scheduler. These batch files had been running on schedule for over a year when all three suddenly stopped about the same time. I believe that this is about the time that the September 2020 Preview Cumulative Update installed. Task Scheduler reports that "Access is denied. 0x80070005. I have tried running them directly as batch files and running "c:\windows\system32\cmd.exe" with the arguments "/c c:\bt\filename.bat" and both fail. I do have the starting directory shown as "c:\bt." All quotation marks are just to separate the commands from the rest of my message and do not appear in the boxes. I did an image restore from October 1 and brought my files up to date, and everything worked again until the update reinstalled itself. I could do the same thing again and postpone the updates, but, sooner or later, the update will be forced upon me and I would like to find a solution to this. Besides, it is very time consuming to restore and bring three systems back up to current data.



    I've been playing with this now for three days and I'm at a loss. I've run SFC /scannow with no results and I also ran DISM to try to fix the Task Scheduler. I did try to go back to a previous System Restore and that failed. Whereto from here?

    :)
     
    mschmieg, Oct 8, 2020
    #1
  2. jgunning Win User

    Task Scheduler Batch file

    Hi all,

    Looking for some help.Im creating a batch file to run for different users to add a scheduled task. HOWEVER - the whole thing works great and has done for some time.But after i run the batch file on each machine (different users) i have to go into the security options and change the user the task runs in to the unique user of that machine. Is there a way to use the batch file to pull the account name of the machine (or computer name) and use that as the user the task runs in?


    Thanks =)
     
    jgunning, Oct 8, 2020
    #2
  3. Tryx3 Win User
    Tryx3, Oct 8, 2020
    #3
  4. Windows 10 Pro rel. 2004 Task Scheduler suddenly stopped running batch files

    Batch files appear to start but don't fully execute on Windows 10 Task Scheduler

    I recently set up a new system with Windows 10 Pro and copied the C:\Batch folder to the new system

    These systems are essentially identical in their hardware configuration except for the motherboard, memory & video card. ( Borh are ASUS Motherboards and Video cards with i7 Processors.)

    All drives are duplicated in size, manufactures and drive letter assignment.



    I use Robocopy in a batch file to copy files at the end of the day to a second set of hard drives on the same box.
    This has been executing perfectly on Windows 7 for years.



    When I attempt to set this up in Scheduler on Windows 10, Scheduler says it is running but there is no activity taking place.
    Task Manager and Resource Monitor bear this out not to mention the obvious that the files aren't copied across.

    When I execute this batch file from the command prompt it runs as expected.
    There are no "call" statements in the batch file.



    Example:

    Robocopy /MIR /MT:8 /R:2 /W:5 /Log:H:\!BackupLogs\BULog.txt /X /V /TEE "C:\Batch" "H:\DataBU\Batch"



    I have configured Task Scheduler as follows:



    Under General Tab I have set the user account under Security Options to the Domain user that has local admin rights.

    It is set to run whether user is logged on or not and with the highest privileges.

    Configure for Windows 10 is selected



    Triggers; it is set to run daily at 23:00:00. It is set to stop the task if it runs later than 1 day and it is enabled.



    Actions tab is set to 'Start a Program' and the full path to the batch file is correct.
    There are no arguments added and I have entered 'C:\Batch' as the 'Start In' option.



    Conditions have Start task only if on AC power and Wake computer to run this task selected.



    Settings have the following selected:

    - Allow task to be run on demand

    - Run task as soon as possible after . . .

    - Stop task if runs longer is set to 1 day

    - If the running task does not end . . . force it to stop

    And 'Do not start a new instance' is selected



    The History will show;

    - Event 107 - Task Triggered on Scheduler

    - Event 129 - Created Task Process

    - Event 100 - Task Started

    - Event 200 - Action Started



    And it will sit there until I manually stop it. I haven’t let it run for 24 hour but this task should only take seconds.

    On my W7 box, this task executes and ends in under 3 minutes daily.

    Any suggestions would be appreciated.
     
    Hawkeye007, Oct 8, 2020
    #4
Thema:

Windows 10 Pro rel. 2004 Task Scheduler suddenly stopped running batch files

Loading...
  1. Windows 10 Pro rel. 2004 Task Scheduler suddenly stopped running batch files - Similar Threads - Pro rel 2004

  2. Task Scheduler - Batch File

    in Windows 10 Gaming
    Task Scheduler - Batch File: I am attempting to use Task Scheduler to run a batch file automatically every day. I am following instructions that I found on the Web. As far as I can tell I have set up Task Scheduler correctly, the only problem being that it doesn't run! I have uploaded screenshots of the...
  3. Task Scheduler - Batch File

    in Windows 10 Software and Apps
    Task Scheduler - Batch File: I am attempting to use Task Scheduler to run a batch file automatically every day. I am following instructions that I found on the Web. As far as I can tell I have set up Task Scheduler correctly, the only problem being that it doesn't run! I have uploaded screenshots of the...
  4. What Could Be Disabling Batch Files Scheduled in Task Scheduler?

    in Windows 10 Support
    What Could Be Disabling Batch Files Scheduled in Task Scheduler?: I'm using Win10 Pro 2004. I go to Win-R > taskschd.msc > Task Scheduler Library. I see a number of batch files that I have scheduled to run at various times. I see that today, like yesterday, their status is Disabled. Yesterday, when I saw that, I right-clicked > Enable. But...
  5. Task Scheduler Stops Running

    in Windows 10 Support
    Task Scheduler Stops Running: Windows 10 20H2 OS build: 19042.685 Task Scheduler has stopped working for some reason. Here is the error: Code: Faulting application name: svchost.exe_Schedule, version: 10.0.19041.546, time stamp: 0x058e175aFaulting module name: ntdll.dll, version: 10.0.19041.662, time...
  6. Windows 10 Pro rel. 2004 Task Scheduler suddenly stopped running batch

    in Windows 10 Support
    Windows 10 Pro rel. 2004 Task Scheduler suddenly stopped running batch: Beginning about four days ago, all three of my Windows 10 machines stopped running batch files scheduled in the Task Scheduler. These batch files had been running on schedule for over a year when all three suddenly stopped about the same time. I believe that this is about the...
  7. Make Task scheduler run a batch file minimised & with a specific icon

    in Windows 10 Customization
    Make Task scheduler run a batch file minimised & with a specific icon: Introduction I have a batch file that I run minimised & with the icon I have chosen. I am happy with the way it runs as I do not need to see the Command window every time and having my chosen icon on the TaskBar shows me at a glance what is running. I also want to run this...
  8. Task scheduler simply refuses to run a batch script

    in Windows 10 Customization
    Task scheduler simply refuses to run a batch script: I know that there have been many different solutions to this problem posted on the internet and various forums, but I have scoured Google for a solution to my problem to no avail. My problem appears to be unique (something that at this rate I do not want). Now, onto my...
  9. Problems automating a batch file with task scheduler

    in Windows 10 Support
    Problems automating a batch file with task scheduler: I want run this bat file from task scheduler @Rem %pf% expands to the right program location depending if it is x86 or x64 system @setlocal @set pf=%ProgramFiles% @if not "[%ProgramFiles(x86)%]"=="[]" set pf=%ProgramFiles(x86)% @Rem %macropath% expands to the demo...
  10. Start Batch File Minimized via Task Scheduler

    in Windows 10 Support
    Start Batch File Minimized via Task Scheduler: I have a batch file scheduled to run in Task Scheduler in Windows 10. The batch file runs on schedule, but it opens a full CMD window. I have tried entering variations on start /min in the Task Scheduler properties, but these seem to have no effect. The particular batch...