Questions tagged [task-scheduler]

Task scheduler is a component in Windows that, like the unix cron daemon, allows scripts to be run at defined times.

Filter by
Sorted by
Tagged with
1 vote
1 answer
18 views

Task scheduler vs shell:Startup

Is creating a task on the task scheduler to run a particular application/script at a startup good or should use shell:startup? I have an old unused computer, am planning to use it to run some python ...
user avatar
  • 11
0 votes
0 answers
48 views

Task Scheduler runs the task but does not execute PowerShell script

Just as the question states. I am trying to schedule a PowerShell script to run every hour using the Task Scheduler on Windows Server 2012R2. This is a remote server. The Task Scheduler runs the task ...
user avatar
  • 13
0 votes
0 answers
13 views

Task Scheduler: Task Never Reaches Completion despite finishing all its jobs

Running a batch file through the Task Scheduler Its running fine, completes everything expected Then continues to run without end for no reason Batch File contains: -> "C:{PATH}\bin\runapp.cmd&...
user avatar
0 votes
0 answers
33 views

Execute Python script in Windows Task Scheduler

I have a Python script which is running in Windows Task Scheduler. The script contains some print commands so that when it run from PyCharm, I can see the print in the console. However, I can't see ...
user avatar
1 vote
0 answers
14 views

Why is some process always launched at startup of my Windows-10 PC? [duplicate]

I have a program, called "Product Server.exe", being launched when I (re)start my Windows-10 computer. Launching MsConfig brings me to the task manager, where the "Startup" tab ...
user avatar
  • 1,462
0 votes
0 answers
14 views

Make windows go to sleep after waking for and running a task

So, I put my Windows computer to sleep whenever I am not using it. So I want it to wake up, run a task, and then go back to sleep when it finishes. The primary example of wanting this is with when ...
user avatar
1 vote
1 answer
88 views

How to make Task Scheduler open a Document with a specific program?

I have Windows 10 Task Scheduler opening a specific .rtf (also tried changing it to .docx) file on workstation unlock. At present it opens automatically with Wordpad, but I want it to open using ...
user avatar
1 vote
0 answers
25 views

How to add trigger for Task Scheduler on weekdays on a specific time, except for a certain days

So I have this .bat file that I need to run on weekdays at 1 pm. Adding it is easy, the problem is. Every 1st to 3rd day of the month(ex. January 1 to 3) the 1 pm run must not run but instead, it ...
user avatar
  • 29
0 votes
2 answers
267 views

Win 10 Task Scheduler with Microsoft Account

I'm running Windows 10 Pro and have a local admin account. I've set up several tasks in Task Scheduler that are set to "Run whether user is logged on or not" along with "Run with ...
user avatar
0 votes
1 answer
74 views

Windows Task Scheduler: Schedule task to run after reboot after 30 days

In Window 10, I want to schedule a task to run after 30 days but only after reboot (at startup) I cannot combine these 2 triggers i.e. it should run when the system is rebooted after every 30 days. As ...
user avatar
0 votes
1 answer
17 views

Does Windows Task Scheduler overlaps with time trigger

I have created a time trigger for a task that would run daily at 7 pm during, weekdays only. But I also need to set a trigger where it runs at 7 pm, at the 1st to 6th day of the month regardless if it'...
user avatar
  • 29
0 votes
0 answers
55 views

Can't open shortcut as minimized in Task Scheduler

I have a lnk to a bat file that opens a minimized window when ran. It works fine. However if I create a task in Task Scheduler by doing cmd /c "C:\...\task.bat.lnk", it no longer opens in ...
user avatar
  • 157
0 votes
0 answers
17 views

Any issue if I disable MicrosoftEdgeUpdateTaskMachineCore and MicrosoftEdgeUpdateTaskMachineUA?

I was learning task scheduling and I saw two tasks MicrosoftEdgeUpdateTaskMachineCore and MicrosoftEdgeUpdateTaskMachineUA related to auto update of Microsoft Edge. Is there any problem/threat if I ...
user avatar
  • 1
0 votes
0 answers
12 views

Win Task Scheduler : how to find out the exact reason why system did not enter "Idle state" and did not run "Start only when idle" task?

I have a task that is scheduled to run when computer is idle for 60 minutes, waiting for this state from 23:00 to 01:00 on about 20 computers. Some "types" of computers with special software ...
user avatar
  • 217
0 votes
1 answer
66 views

Automating commits in a github repository every sunday?

I am using : Google Drive Desktop (as D:/) Github Desktop Windows 10 OS I have : A directory called "myNotes" on my Google Drive ( Which is D:/myNotes on Windows Desktop ). I have a ...
user avatar
0 votes
0 answers
15 views

Windows Task Scheduler piling up messages without completing existing Job

I was using windows task scheduler which runs in every 15mins frequency but it usually takes 4 to 5 hours to complete a task. Actually scheduler consuming a batch of messages(around 3K) from a server ...
user avatar
  • 1
0 votes
0 answers
35 views

Windows 10: run cmd at power-on WITH console window

I have a batch file (which sets some stuff up and runs a Python script) that must be run at Windows 10 power-on; not log-on, power-on. The Python script outputs useful diagnostics to the console and ...
user avatar
  • 141
0 votes
1 answer
48 views

Improving task from Task Scheduler

I have to restart a program after waking up the laptop. The trigger is working (https://www.sevenforums.com/general-discussion/308855-using-task-scheduler-restart-program-upon-wake-sleep.html) Then I ...
user avatar
0 votes
0 answers
24 views

Task Manager Not Showing Up when Minimized when Started with the Task Scheduler

Apologies for not phrasing my title like a question. Why is the Task Manager not Showing Up In the Taskbar Icons to the Right when Started with the Task Scheduler and Minimized with the "Hide ...
user avatar
  • 113
0 votes
0 answers
32 views

Created task in task scheduler does not execute program

I created a simple batch file to start a program as the action, and the trigger being when a specific application is terminated (lghub.exe). For some reason the task doesn't execute the program when I ...
user avatar
  • 1
0 votes
0 answers
41 views

How do I properly sync data between two Windows 10 systems on the same LAN utilizing Robocopy, a .bat file, and Task Scheduler?

I've read a number of posts regarding the use of robocopy to sync data between two Windows systems. I tried various configurations, and the settings I currently have in place are what seemed to work ...
user avatar
  • 1
0 votes
1 answer
342 views

Windows Task Scheduler Not Running Microsoft Access Script

I have a script setup in an Access database that I want to run nightly. I've setup a task in task scheduler to run every day at 4:00am. It opens the database, runs the script, and the last line of the ...
user avatar
1 vote
1 answer
747 views

How to execute an interactive scheduled task when the user is not logged in on a Windows Server 2016 VM

So I'm trying to execute a powershell program that will open the browser with some website and take screenshot of that webpage and store it somewhere. Its working when I'm logged into the VM. But as ...
user avatar
  • 11
0 votes
1 answer
119 views

Hibernate after 10 minutes of inactivity regardless of CPU Usage?

In Windows 10, I can set up the PC to hibernate after certain time of inactivity using Task Scheduler. But this works when the CPU usage is under certain criterion: this is how Windows 10 defines ...
user avatar
  • 1,638
0 votes
1 answer
91 views

Task Scheduler in Windows 7 always treats computer as idle

I have a weird issue with one of the default Windows tasks, namely Microsoft/Windows/AppID/VerifiedPublisherCertStoreCheck Here are its default settings: Triggers At startup Delay task for 30 minutes,...
user avatar
  • 143
1 vote
0 answers
30 views

Understanding kernel process scheduling

I am learning kernel/OS and having a hard time understanding how context switch/scheduling works at lower level. For example, I have a program simply loops: while (1) {} If I run above code on a ...
user avatar
  • 11
1 vote
0 answers
55 views

Windows 10 Task Scheduler does not run after manual trigger

I have a job which should be run several times a day, I usually set it up to run every 2 hours, 3 hours, or 4 hours. Sometimes I revise the code and manually run it to test. The test run works ...
user avatar
  • 1,638
3 votes
2 answers
107 views

Unable to launch program via powershell via Task Scheduler

I have a simple powershell script that detects if a program is running and if it isn't it launches the program. It works fine when I right-click and "Run with PowerShell" the script, but ...
user avatar
  • 51
0 votes
1 answer
338 views

What 'wait for idle for' as 'do not wait' means?

There is already a question asking Task scheduler - What is "Wait for idle for"?, but I could not understand what the Do not wait thing does when Start the task only if the computer is idle ...
user avatar
  • 318
0 votes
2 answers
80 views

Task scheduler advanced action Filter

I managed to set an action in the Task scheduler that is triggered at the validating of the network setting changes: by subscribing to events from the register Microsoft-Windows-Diagnostic-Networking/...
user avatar
0 votes
1 answer
217 views

Trigger an event based only on user inactivity

Windows 10 Task Scheduler can trigger an event after certain time of idle status, where the 'idle' is defined by user keyboard mouse input and other conditions such as CPU usage. Can I define a ...
user avatar
  • 1,638
0 votes
0 answers
74 views

Robocopy started hidden with vbs script not showing exit codes in Task Scheduler

Trying solutions here and here works fine, except in Task Scheduler Last run result always shows as The operation completed successfully. (0x0) instead of 0x2 or 0x3 without vbs: Is it possible to ...
user avatar
  • 1
0 votes
2 answers
549 views

Task scheduler ("Run whether user is logged on or not") on Windows 10

My PC is not password protected (because it's for the family), and whenever I create a task on task scheduler with "Run whether user is logged on or not" it asks me to enter a password. How ...
user avatar
  • 19
-1 votes
2 answers
119 views

Is there a way to run a task when a process has completed its operation?

I am an expert in writing .bat files, I am experienced in writing .ps1 files, I just learned to use taskschd to create scheduled tasks. Currently I can set a time to trigger a script, I know I can ...
user avatar
0 votes
0 answers
158 views

How do you set a scheduled task that can run a program in the foreground as an administrator, triggered by any user?

For context incase I am looking at this wrong: I'm working on building my little sisters a computer with RGB and the GUI will only launch from an Admin account. I do not fully trust them with ...
user avatar
3 votes
2 answers
1k views

Task scheduler: Run "At startup" does not work on cold boot

When I schedule a task to run "At system startup" in Windows 10 task scheduler it runs well on reboot. But if I choose shutdown, and then turn on the system with the computer's power button, ...
user avatar
  • 119
0 votes
1 answer
212 views

run task on windows task scheduler every n minutes but the duration of the task is longer

i want to a task on windows scheduler to run every 10 minutes, but the duration of the task to complete is 15 minutes. So it will look like this: 10th minute -> 1st task start, 20th minute -> ...
user avatar
1 vote
1 answer
1k views

How to create a persistent cronjob on an Ubiquiti Edgerouter-X so its still there after a firmware update

We have tens of Ubiquiti Edgerouter-X's on active on customer locations. They among other things responsible for pinging an IP each minute. This is done by a cronjob (set with crontab -e) and works ...
user avatar
  • 123
2 votes
0 answers
378 views

Where are scheduled tasks stored in an offline windows 10 image?

Where are scheduled tasks stored in an offline Windows 10 image, as within an install.wim, I noticed there are no scheduled tasks within an index's: .\Windows\Tasks: .\Windows\System32\Tasks: HKLM\...
user avatar
  • 45
0 votes
2 answers
929 views

How to run scheduled task for the batch with 2 parameters?

I have a batch file which I need to run every 15 min. When I click twice on the batch I: Need to enter the name of test to run and It is always Scripttest.jmx, like this: Need to enter y in this SS: ...
user avatar
0 votes
1 answer
120 views

Task Scheduler XML InteractiveToken Always Ignored No Matter What

<?xml version="1.0" encoding="UTF-16"?> <Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> <RegistrationInfo>...
user avatar
1 vote
1 answer
105 views

Watch for process start, then execute command

Short of hacking together a service to monitor process launches, is there any other way I can go about attaching code, or executing a command/process to an event handler for another specific process ...
user avatar
  • 332
1 vote
1 answer
761 views

Batch file continues to run command after Task Scheduler stops it

I have a scheduled task running at 00:00 that opens a .bat file containing a robocopy command, with the task set to stop after 4 minutes, and to force stop if not ending when requested. It seems the ...
user avatar
1 vote
0 answers
28 views

Start shutdown after one hour of playing - Trigger problems

I am playing a game which is very addicting. I would rather limit the amount of time spent on that game to one hour per day, therefore, I need my (Windows 10) pc to turn off after one hour. I am using ...
user avatar
1 vote
1 answer
1k views

Where are Schedule Tasks stored?

When we create a scheduled task in Windows 10 with schtasks.exe, which files/databases/registry entries are being modified? For example, are the tasks seen with schtasks.exe /query accessible in a ...
user avatar
1 vote
2 answers
452 views

How to run scheduled task 3 days before end of month

Task should run 3 days before end of month, once per month. In this year it should run in Aug 29 Sept 28 Oct 29 Nov 28 Dec 29 How to specify this in Windows Scheduled task trigger so that it runs ...
user avatar
  • 131
0 votes
1 answer
49 views

How can my Ultimate Performance power plan activated everytime i open games

I tried using Task Scheduler to trigger Ultimate Performance power plan activated when opening games but it doesn't seem to work I don't want to use any third-party apps
user avatar
2 votes
1 answer
70 views

Cannot replicate documentation example on scheduling a task with Schtasks.exe using an XML file

Summary I am following the examples of the official Microsoft documentation regarding using the task scheduler to create a task that is defined in XML. My objective is to implement the example of ...
user avatar
  • 121
1 vote
1 answer
401 views

Task Scheduler Idle task not triggered on the correct time window

In my windows 10 machine I have created the below task scheduler task and set the trigger time to be 1 min when idle. I've checked and manually timed the trigger to happens and it always triggers ...
user avatar
  • 431
1 vote
1 answer
302 views

Task scheduler On Idle task not triggered Windows 7

I've used Task scheduler and created a new task, added a trigger, set it to event: on Idle and created the task. In the conditionstab, specified the task waits 1min to become idle (instead of 10min ...
user avatar
  • 431

1
2 3 4 5
7