Questions tagged [windows-task-scheduler]

Use for questions about programmatic modification of task scheduling on any version of the Windows OS.

The MS Windows system scheduler component manages the execution time (time slices) that competing processes & threads are given on available processor cores.

Tag usage

The task is for questions about programmatic modification of task scheduling on any version of the Windows OS. You should also tag questions with their specific Windows version, where relevant.

Related tags

References

Microsoft documentation is the primary source for documentation about Windows Scheduling. You may refer the following topics for more information:

845 questions
-1
votes
1 answer

Can you run a script that would change date and time every 24 hours?

So i need a script that would change the date and time to a specific date and time. My problem is that i need a cycle of 24 hours on one specific date and then it goes back 24 so the date does not change. For ex. 25. 1. 2021 00:00:00 Am ----> 25. 1.…
Wospa
  • 3
  • 1
-1
votes
1 answer

Running a windows task scheduler job on Azure webjob (scheduled event)

I have a question on windows task scheduler job running on Azure. I already have a console app that is ought to run as a windows task scheduler job (5th day of every month). I was finding options to run it on Azure and found function app or…
-1
votes
1 answer

Scheduled Task gets removed upon reboot

I'm trying to make a scheduled task for a small software I had written for a friend, I'm using Schtasks /create /SC MINUTE /MO 30 /tn JoesInventoryReader /tr C:\joes.exe /RL HIGHEST But for some reason, whenever we reboot the computer, this task is…
-1
votes
1 answer

Why python script works perfectly when run manually but throws MemoryError when run via Task Schedule?

I have a python script that runs without any problem when I run it via command line or through an editor. However, once I set it up to run automatically via Task Scheduler, I am getting MemoryErrors in my logs. This is the error…
-1
votes
1 answer

What may prevent PHP composer from working when executed as SYSTEM from a windows scheduled task?

On a Windows 2012 server, there is a script called xyz.bat When it is run locally as any user who can run it, it works fine. When it is run locally as SYSTEM in the following way: psexec /s /i cmd.exe It also works fine. When converted to a…
Mike_K
  • 9,010
  • 5
  • 20
  • 27
-1
votes
1 answer

I running a console application via Windows Task Scheduler but it is taking more time while running it?

I am facing an issue but I couldnt able to find out the root cause of this. First of all sorry I am not clear on this. I have an application which do call some scripts and gets the sql data from one server and add it to another server. While running…
Anish
  • 219
  • 2
  • 12
-1
votes
1 answer

Read the contents of a hidden powershell script running trough Task Scheduler

So I have a bunch of powershell scripts that I run through Task Scheduler. Depending on their tasks and the time it takes for them to run, some run every minute, others every hour and others every day and others weekly. I run all of these scripts…
-1
votes
1 answer

Scheduled Robocopy Task fails with Not Enough Memory Resources Error

My robocopy batch script was able to run successfully in the command prompt, but the same bat file failed to run when started from the Task Scheduler. The script was started, but instead of copying the files, robocopy returned a 'Not Enough Memory…
ndw
  • 513
  • 6
  • 14
-1
votes
1 answer

python.exe flashes and close while running from windows scheduler

python.exe flashes and close while running from windows scheduler Last run result is showing : (0x1) Everything was working perfect untill i uninstall and reinstall anaconda. New reinstalled Anaconda3 folder is at same place. Jupyter notebook…
lil-wolf
  • 372
  • 2
  • 15
-1
votes
1 answer

TaskScheduler To Find Tasks on a Server

Researching online I have found classes like TaskScheduler, ServiceController, and Task Scheduler Managed Wrapper. However I have not found good examples of how to use this for what I need. I have a bunch of servers and in this vb.net program one of…
-1
votes
1 answer

Is there a reason why this batch line to copy files from one drive to another only completes halfway?

Using the below line to copy all files from C drive folder 'Data' to D drive folder 'odrive DATA' and will create a new folder to store copied files. echo ### Copying files from company data to odrive backup... xcopy C:\Data D:\"odrive…
weslang
  • 1
  • 1
-1
votes
1 answer

How to use Task Scheduler to run a macro in powerpoint?

I am trying to run a VBA macro called test in a PowerPoint called Presentation1 daily by using Windows Task Scheduler. I set up the action with the program/script being "C:\WINDOWS\system32\cmd.exe" In the "Add Arguments" area I put: "C:\Program…
rox601
  • 1
  • 1
-1
votes
1 answer

Scheduled program doesn't run every time--why not?

I currently have a python program that is both a web-scraper, and file-writer which updates databases that are on my desktop using windows 10 task scheduler. The problem is, for some reason the task scheduler doesn't run the python files at the…
-1
votes
1 answer

Windows Task Scheduler is not starting task when given user ID in batch file is disabled and again enabled

We are taking data cut from one DB and dumping it to another DB. During this period, we are deleting our user ID to access Oracle. Once loading is done, user ID is again created with same password to access DB. However, my file - which contains this…
-1
votes
1 answer

get 'last run time' from task scheduler, python

I'm trying to find the last run time of a specific task in Windows Task Scheduler on Windows 10. At the beginning I used schtasks /QUERY /FO LIST /V /TN "TASK_NAME", which gave me a string that I converted to datetime. But, then I realized that I…
rinat dior
  • 49
  • 4