Questions tagged [scheduled-tasks]
A scheduled task is a job scheduled to run at a specific time and frequency and run a specific command on the operational system.
988
questions
0
votes
0
answers
20
views
Why Task Scheduler is not running
I have a task that runs a java application through command prompt
It is supposed to run every minute
at every minute the Next Run Time changes to the next minute but the Last Run Time stays the same ...
0
votes
1
answer
36
views
How to get windows to open a Minecraft server on startup
So far I've tried task scheduler directly which didn't work. I figured I can right a .bat file to start my server as follows.
"start java -jar "C:\Users\{username}\Documents\Minecraft server\...
0
votes
0
answers
27
views
Schedule a task to run when a program is ended
My code looks like this:
<QueryList>
<Query Id="0" Path="Security">
<Select Path="Security">
*[System[Provider[@Name='...
0
votes
0
answers
23
views
Task Scheduler not running task when I am logged out?
I have an .exe that uses Python script I wrote to open a Selenium browser, log into a site, download a .xml file, and then sign out of the site and close the browser. I want to schedule this to happen ...
0
votes
0
answers
18
views
Why does OnUnitActiveSec starts on the hour, sharp?
I wrote a timer for a backup service:
[Unit]
Description=runs borg every 3 hours
[Timer]
OnUnitActiveSec=3h
[Install]
WantedBy=multi-user.target
When starting it at 17:29 I see:
root@srv /e/docker# ...
2
votes
1
answer
47
views
How to get an alert if a task from a specific folder fails in Windows Task Scheduler?
I am familiar with the solution provided here: Make Windows Task Scheduler alert me on fail
However, that triggers when any task fails. I only want to receive an alert if a task from the "User&...
1
vote
1
answer
51
views
Batch script does not output file when limited user runs it from an administrator task manually
The Problem:
I want to let a limited user restart a Service. This requires admin privileges, and thus the limited user is unable to restart individual services. I also want to create a timestamp file ...
0
votes
0
answers
113
views
Task Scheduler Running Multiple Instances
I am encountering an issue with Task Scheduler on a Windows Server. I have a startup task that runs a program/script via Git Bash, which points to a .sh file that executes a Python script every minute....
0
votes
1
answer
39
views
How to schedule a task that runs once every day only if the user has logged in
When an user logs in to his pc, we need to perform a certain task, but this task should only be done once a day.
So if the user logs in/out several times a day, only the first time the task should ...
0
votes
0
answers
45
views
Powershell script not running from task scheduler
Currently, I have developed a PowerShell script which collect CSV files from NAS drive and copy the files to the local server. I am able to execute the script manually also able to run from PowerShell ...
0
votes
1
answer
10
views
Yocto Mickldore Group RT Scheduling issues with pthread created with FIFO policy
I'm currently building a yocto image using 6.1-mickledore (mickledore).
When I run my application it exits prematurely because of some pthread_create code. It looks like when I comment out setting the ...
2
votes
0
answers
65
views
Task Scheduler Windows 11 not waking the computer
I know that variations of this have been asked previously and I have read most of the responses to older threads. However I am using a newer OS and those older threads have helped me get this far but ...
0
votes
0
answers
97
views
Creating a Scheduled Task for all users running with an Admin account at logon
I am trying to create a scheduled task that runs a batch file that will run at logon for any user that logs into the machine, and I also need it to run using a service account (that is an ...
0
votes
0
answers
108
views
Schedule a task with admin privileges Windows 10
I feel like this should be easy but I am not making any further progress. I have seen the other post mentioning Windows 7 and UAC prompts but the accepted solution on that did not post work for me. ...
0
votes
1
answer
26
views
task scheduler library does not synch properly wit AD
I have Windows Server 2022 Datacenter 21H2 and a Windows 11 Pro 23H2 machine
I created 2 gpo-s with some scheduled tasks.
I deleted one of the tasks from windows server GPO manager but after many ...
0
votes
1
answer
78
views
Run script elevated as different user on remote machine
I have a Windows Scheduled Task that runs a Powershell script file A.ps1. This task runs mostly locally and does NOT need elevation/administrator access. However, a few steps need to run on a remote ...
0
votes
1
answer
120
views
How does Windows Task Schedule run tasks with multiple actions?
If you have a Windows Tasks Schedule Task with multiple actions, how does it run them?
Does it kick off each additional action without waiting for the previous action to finish, or does it wait until ...
0
votes
0
answers
410
views
Windows Security Event ID 4800 (lock screen) on Win 11 Pro for Workstations
I have a task that is triggered on PC1 whenever the user locks their computer. This works fine.
I just set it up the same on PC2, but the Event ID 4800 is not logged on this machine when the user ...
0
votes
0
answers
17
views
Aside from the Task Scheduler, how can tasks automatically fire on a fresh Windows Server 2019 machine?
I have a Windows Server 2019 machine. It is pretty much an empty box. My company has installed a handful of things on it, but I am convinced that I have checked it all. Mysteriously, the CPU goes wild ...
0
votes
1
answer
43
views
Display modesetting in Windows logon screen
I'd like to run an interactive scheduled task at startup, before user logon. By "interactive", I mean that I need to access Windows' CCD api to set the screen resolution/refresh rate/main ...
1
vote
1
answer
267
views
Windows 11 Task Scheduler - How to stop a running powershell script task?
In Task Scheduler, how may I stop a running task sooner than 1 hour, say immediately after execution?
I've tried manually entering '1 minute', but the Task is still 'running'. Suggestions?
I'm running ...
0
votes
1
answer
1k
views
How to create scheduled task that runs under user some_domain\my_user and does not require logon in Windows 11 task scheduler?
I am trying to define task with the following options as seen in task scheduler GUI:
"When running the task, use the following user account:" some_domain\my_user
"Run whether user is ...
1
vote
1
answer
70
views
No internet connection when scheduled task starts or when Sql server agent job starts
I've a task that runs daily which is failing because it starts without internet connection.
I tried to tick wait for network but it doesn't work either.
I tried to register the task with System and ...
0
votes
1
answer
647
views
How to automatically run a batch file each time an application opens in Windows 10?
I am looking to automate the execution of a .bat file every time I open a specific application, such as notepad.exe, on Windows 10. Here is what I have done so far:
I configured the local security ...
1
vote
0
answers
82
views
Create Task Scheduler with No Triggers Set
I need to Create a Task Scheduler with parameters:
No Triggers
Available both in AC and DC
I learn SCHTASKS /? help, but haven't found what I mean.
I tried:
SCHTASKS /Create /TN "Test" /TR ...
0
votes
1
answer
296
views
Stop OneDrive in Scheduled Task
I need to stop and resume OneDrive inside a PowerShell Script that runs at Scheduled Task.
The stop/resume works fine unless I check 'run whether user is logged on or not'. In that case the OneDrive ...
0
votes
1
answer
592
views
Launch request ignored, instance already running
I have created a scheduled task that runs every minute, indefinitely.
The task launches a batch which moves files between 2 servers. It runs with a specific domain account.
The task takes up to 10 ...
1
vote
1
answer
1k
views
Batch files run through Task Scheduler aren't working as intended
This is the code I am using. It is something I found on other posts on this site.
Script Code #1:
@ECHO OFF
SET EXEName=TcpSnd.exe
SET EXEFullPath=D:\ComputerRX\Pharmacy\TcpSnd.exe
SET ...
0
votes
0
answers
164
views
How to create a wake-up task on Windows 11?
I need to execute some apps every time the machine wakes up in the mornings.
I tried to create Scheduled Tasks like the one below, but it didn't work. When I wake up the machine nothing happens.
What ...
0
votes
0
answers
21
views
Task scheduler hibernate after 18:00 with task repeat issue
My use case:
Hibernate computer after 18:00 if it's being idle for 10 minutes.
But if I turn it on after hibernation I would like this task to be repeated every 10 minutes till next morning.
My setup
...
0
votes
0
answers
136
views
Task Scheduler executing PowerShell script with some errors
I created one task with high privileges
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "D:\OneDrive\OneDrive - HAJJAJ\SCRIPTS\01_Hourl_Stock_From_ERP.ps1&...
1
vote
1
answer
462
views
How to run wsl using Task Scheduler without loging?
According to Task Scheduler- Batch "Run whether user is logged on or not" not working and other articles, "Run whether user is logged on or not" requires pure batch processing ...
0
votes
0
answers
68
views
Task Scheduler (Win11): is it possible to delay multiple ACTIONS under a single task?
Is there a way to delay multiple Actions under a single Task? Something like:
Act1: do this, wait 2 secs
Act2: do that
With "Actions" I mean those under this tab section, where you can ...
0
votes
1
answer
438
views
How to pass arguments from a windows 10 scheduled task to a powershell script onLock and onUnlock events/triggers
I am trying to setup the following scenario using a windows 10 task scheduler.
A logged in user locks or unlocks the workstation
A powershell script gets triggered and the PC-NAME and a USER_NAME of ...
0
votes
1
answer
1k
views
Starting a Scheduled Task from Command prompt gives Access Denied
I have a FreeFileSync setup that backups my files. I need non-admin users be able to launch the backup.
I created a scheduled task with the name "FreeFileSync PC Backup" and configured it ...
0
votes
0
answers
111
views
How to run a batch script completely and automatically on event such as sleep/hibernate and shutdown event using task scheduler?
I have written a batch script to perform some folder synchronizing task. I have scheduled the script to execute using task scheduler on events such as sleep/hibernate(kernel power event id 42) and ...
0
votes
0
answers
172
views
MacOS pmset — Schedule different wakeorpoweron per weekday
Related questions:
Sending multiple pmset repeat schedules to a Mac
Pmset multiple repeating schedule pairs
What I am trying to do
pmset repeat wakeorpoweron MW 9:00:00 wakeorpoweron TRF 11:00:00
...
1
vote
1
answer
321
views
Tell Linux scheduler not to use certain CPU cores at runtime?
I want to absolutely remove certain CPU cores from Linux scheduler.
All I found on the Internet is adding isolcpus to grub with rebooting.
But it there a way to do it at runtime (without reboot)?
1
vote
1
answer
2k
views
How to make sure a task is run at Windows startup?
I have trouble running a PowerShell script and/or and .exe file on boot with Windows (both win10 and win11). I have tried multiple methods:
Put the script inside shell:startup
Create a task with Task ...
2
votes
0
answers
41
views
How to run scheduled task only if none of a group of programs are running?
I have been using Task Scheduler to launch and terminate compiled AutoHotKey scripts depending on whether other apps are launched or terminated. I used information on custom event filters from this ...
0
votes
1
answer
83
views
Parameter "262144" (top-most attribute set) in Task Scheduler does not work (VBScript)
Parameter 262144 (top-most attribute set) in Task Scheduler does not work. When creating a task to run a .vbs file, parameter 262144 does not work (does not open the window on top of others), although ...
0
votes
1
answer
362
views
How to make a notification with a sound signal?
I would like to make a reminder so that a notification with a sound signal appears in a month. In Windows Task Scheduler, you cannot send a message along with a beep (message only). At first I wanted ...
1
vote
1
answer
281
views
Script detects and runs when USB Drive with unique serial number is connected
Script should run when it detects USB drive with specific serial number is just plugged in.
But its giving this error msg:
{ Cannot convert value "Win32_PhysicalMedia='K:'" to type "...
8
votes
1
answer
3k
views
Firefox keeps implementing task in Task Scheduler
There is a task in my Task Scheduler added by Firefox called "Firefox Default Browser Agent". Every 10 minutes it takes focus away from what ever I'm doing and opens a cmd for about 0.01 ...
0
votes
0
answers
329
views
How to automate NirSoft MultiMonitorTool using Windows task scheduler?
I'm using the freeware software MultiMonitorTool to automate the configuration of displays on a Windows 11 computer.
I got two Batch scripts that "do" (disable the physical display) and &...
0
votes
1
answer
4k
views
Configuring a scheduled task to run whether or not a user is logged in Powershell
I'm setting up scheduled tasks in Windows Server 2016 through Powershell (not through schtasks.exe).
$user = "Administrator"
$trigger = New-ScheduledTaskTrigger -Daily -At 0:00
$action = ...
0
votes
3
answers
183
views
Batch (or some other file) to have scheduled in Task Scheduler for a popup that leads to a website
I am trying to create a batch file (or some other file) to show a pop up reminder with a yes/no option that I can get set up to run at a designated time in task scheduler. This will be planned to run ...
0
votes
1
answer
592
views
Network shares not available in Windows scheduled task
I have a number of scheduled tasks that run PowerShell scripts that need to access files on a Qnap NAS server. I learned some time ago that if I set "Run whether the user is logged on or not"...
0
votes
1
answer
271
views
Move files from local to network drive without stealing away focus on production computer
I am looking to move files from local computer to network drive as repeated task once every 24 hours. I have tried couple of things but they all end up stealing away focus on the application as the ...
1
vote
1
answer
3k
views
Disable Microsoft Edge Restore Pages Functionality
I scheduled a batch script with Task Scheduler to routinely close and reopen Edge to my website once a day while the browser is opened in Kiosk mode.
I have:
Taskkill /F /IM msedge.exe
:: wait three ...