scheduled task
2 TopicsWindows Scheduled Task does not run
I created a task under folder \DandyLabs called "DandyLabsBlogEntryRetriever". This task runs a batch file "dandylabsblogentryretriever.bat": ECHO Running DandyLabsBlogEntryRetriever.. CD C:\path\to\batch "C:\Program Files\Java\jdk-14.0.1\bin\java" -cp ".;../jar/commons-io-2.11.0.jar;../jar/mysql-connector-java-8.0.19.jar" com.dandylabs.DandyLabsBlogEntryRetriever && ( (call) ) || ( (PAUSE) ) I then created a scheduled task to automatically run this .bat file at a given time, to run whether I am logged in or not, and to make up to 3 attempts to run, timing out after 30 minutes. The .bat script runs just fine if run manually; the scheduled task will run if you click "Run" and will run just fine, but when it is scheduled to run, nothing happens. The history just says "Task registered" and goes no further; no errors nor warnings are given. I don't know what to do at this point. I am using Windows 10 if that helps. Does anyone have any idea what I may have done wrong to cause this to happen? Please advise, thanks424Views0likes1CommentError when creating task using command prompt in Windows 2019 docker container
My host is Windows 2019 standard. It contains docker image which is also based on Windows 2019 standard core (no GUI). This is the image I am using: http://mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019 When I run following command on host then it works fine. But running same command in Docker container results in error. Command schtasks /create /sc minute /mo 1 /tn StudentManagementSystem /tr C:\StudentManagementSystemConsole\StudentManagementSystemConsole.exe Error The task XML contains a value which is incorrectly formatted or out of range Using following PowerShell script in Docker container also results in exact same error. $action = New-ScheduledTaskAction -Execute "node" -Argument "C:\StudentManagementSystemConsole\StudentManagementSystemConsole.exe" $now = Get-Date $interval = New-TimeSpan -Seconds 60 $forever = [System.TimeSpan]::MaxValue $trigger = New-ScheduledTaskTrigger -Once -At $now -RepetitionInterval $interval $settings = New-ScheduledTaskSettingsSet $task = New-ScheduledTask -Action $action -Trigger $trigger -Settings $settings Register-ScheduledTask -TaskName ‘Student Management System’ -InputObject $task How to fix this issue?402Views0likes0Comments