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
0
votes
0answers
32 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 ...
0
votes
1answer
16 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 ...
1
vote
1answer
91 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 ...
0
votes
0answers
28 views

Windows Tasks Scheduler Job fail

I'm using Tasks Scheduler on Windows 2008 R2. It executes a .bat file which removes some files in a particular directory. When I am running this .bat file from the command prompt it does the job and ...
0
votes
1answer
59 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 ...
0
votes
0answers
15 views

How to imitate UNIX “daemon”-processes using task scheduler in Windows platform?

I don't know the exact formulation anymore, but in UNIX the following crontab entry makes sure that a process always is running (and gets restarted in case it stops), which makes the process behave ...
0
votes
1answer
22 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,...
1
vote
0answers
24 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 ...
1
vote
0answers
18 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 ...
3
votes
2answers
50 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 ...
0
votes
0answers
123 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 ...
0
votes
2answers
32 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/...
0
votes
1answer
22 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 ...
0
votes
0answers
36 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 ...
0
votes
2answers
56 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 ...
-1
votes
2answers
113 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 ...
0
votes
0answers
21 views

Run a program on logon between time using task scheduler

I want a script/program to start at "start-time" and close at "end-time" when the user is logged on. Also if the user logs on between "start-time" and "end-time"...
0
votes
0answers
31 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 ...
1
vote
1answer
101 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, ...
0
votes
1answer
29 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 -> ...
0
votes
1answer
163 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 ...
0
votes
0answers
43 views

How to set up email notification when task scheduler completes “with return code…”

How can I setup an email notification to myself when task scheduler not failed but completed "with return error code...". Again, log file doesn't say Error, it says Action completed. The ...
0
votes
0answers
120 views

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

Okay so within the install.wim I noticed that there are no scheduled tasks: install.wim\Windows\Tasks Nor are there any in: install.wim\Windows\System32\Tasks I even went as far as to find them in the ...
0
votes
2answers
647 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: ...
0
votes
0answers
9 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>...
1
vote
1answer
56 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 ...
1
vote
1answer
272 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 ...
1
vote
0answers
25 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 ...
0
votes
0answers
18 views

How to set the schedule for user logon in Windows 10

I'm computer system administration that work in school. In every classroom have computer for teachers, but students often use it when teachers are away. I want to prevent student to use computer by ...
1
vote
1answer
479 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 ...
1
vote
1answer
66 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 ...
0
votes
1answer
16 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
2
votes
1answer
41 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 ...
0
votes
0answers
60 views

Windows Task scheduler starts exe (daemon) on boot, what happens if “kill after 3 days” is left checked?

In windows Task scheduler a exe file is started at boot. The exe acts as a daemon, looking for a specific event then doing something and waiting for the next event. All the time this exe is visible in ...
1
vote
1answer
151 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 ...
1
vote
1answer
201 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 ...
1
vote
1answer
79 views

Run a task when screen sleeps

I have a task in task scheduler and I want to run this task once the screen sleeps not the computer. I’ve tried setting the Trigger to be “On Idle” but didn’t work, and I tried setting the trigger to ...
0
votes
2answers
194 views

Filter tasks in Windows Task Scheduler by action

I am trying to find a task in Windows Task Scheduler on an image of a Windows 10 x64. All I know about this taks is that when it is triggered, it disables a service which I also know nothing about. I ...
1
vote
0answers
34 views

How to create a task scheduler with the following powershell command (restart the clipboard service) [duplicate]

So basically this command needs administrator rights in order to work in powershell Restart-Service -Name "cbdhsvc*" -force But the question is how can I create this PowerShell file with ...
1
vote
1answer
105 views

Do not show hidden jobs in Windows Task Scheduler by default

In the Windows Task Scheduler on the item "View" when I choose "Show hidden tasks" so that it is turned off, it is not remembered. The next time I run the scheduler, hidden tasks ...
0
votes
0answers
77 views

Use mouse move, click, keyboard button press as a trigger

I would like to launch a screen record software every time someone touches the computer. for that, is there a way to use a mouse move, a click, a press on a keyboard button (or any sign of human ...
2
votes
3answers
883 views

powershell task in task scheduler cannot start-process with another -Credential

We have a scheduled task that is a powershell script. The script performs a number of actions against SQL data-bases where the access is controlled via integrated security. Hence each of these ...
0
votes
0answers
11 views

Scheduling an url of zoom and perform action

I want to schedule my zoom URLs of meetings so that they open up at the time of meeting Also, an action is performed through which open zoom button is initiated. I have tried using MIT app developer ...
0
votes
0answers
25 views

how to run a master batch file from a taskscheduler?

@echo off start test1.bat start test12.bat start test13.bat start test133.bat exit /B 0 I can run that master batch directly in cmd but not through taskscheduler. All batches are from same ...
0
votes
1answer
170 views

Windows 10 defer scheduled tasks

I have observed my Windows 10 system slowing down at the post lunch hours everyday, it runs super fast until then. On close observation I figured out that there are certain tasks in the Task ...
1
vote
1answer
442 views

Auto Run Task When Resume From Sleep or Hibernate Mode

I have a program that I want to run automatically when turning on my Windows 10 laptop from sleep or hibernate mode without logging in yet. If the program is ran, there should be a command prompt ...
0
votes
0answers
67 views

xcopy in task scheduler ends with error 4

I created a task in task scheduler to copy a specific file to a server each midnight. When I run the command normally in command line it works fine, but the task always ends with exit code 4 and the ...
2
votes
1answer
654 views

How to predefine file/directory parameter to xcopy

I need to run xcopy command. But when I type it with all parameters: xcopy \\<server>.<domain>.com\c$\Users\<user>\Documents\New_ADuser_mustang.ps1 C:\IAM\New_ADuser_mustang.ps1 /C /...
0
votes
0answers
29 views

Strange Task Scheduler and Python behavior

I'm looking for advice on the automated execution of a Python script by the Windows Task Scheduler. The task is very simple: sending TCP commands over a wireless network at fixed times every day to ...
0
votes
0answers
132 views

Task Scheduler - Task is not repeating

I have a script that automatically fetches origin from github and pulls it. When I run it by clicking it, it works. I made a task in Task Scheduler that would constantly run the script every one ...

1
2 3 4 5
7