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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
129 views

Issues with Task Schedulers Permissions in creating file

I'm having issues with a C++ program I wrote and is automated with the Windows Task Scheduler not being able to properly create log files. Right now when my application starts up, it immediately ...
nathan lachenmyer's user avatar
0 votes
1 answer
875 views

schtasks asking for password at task creation

I have to schedule the launch of a program and I have to do that through Task Scheduler. I want to set the task to Run whether user is logged on or not and I don't want to check the Do not store ...
martinotecco's user avatar
1 vote
2 answers
322 views

How to disable FireFox extensions through Windows Task Scheduler

I've set Task Scheduler to toggle various tasks depending on the time of day, such as setting Windows to dark mode at night and light mode at day. In keeping with this setup, I'd like to automatically ...
The Editor's user avatar
0 votes
0 answers
441 views

Windows task scheduler doesn't start task when the battery is low

I create the task with SCHTASKS.EXE /create /tn "TaskName" /ru system /xml ".\TaskName.xml" This is the content of TaskName.xml <?xml version="1.0" encoding="UTF-...
Axeltherabbit's user avatar
1 vote
1 answer
7k views

Reboot the server at a given date and time

I need to schedule a reboot of a server every other Saturday at 11 PM. I need to get this automated and not have to run it manually. I have tried SCHTasks but the client does not accept and needs a ...
Ankur Srivastava's user avatar
0 votes
0 answers
540 views

How to prevent Windows from shutting down if a scheduled task is running?

I have a task scheduled through Task Scheduler that can take a while to complete. I would like it to prevent Windows from shutting down (triggering the typical "waiting for program to close" ...
Pablo's user avatar
  • 1
0 votes
3 answers
2k views

Run forfiles.exe as a scheduled task, fails with return code 2147942401

I'm trying to run forfiles.exe as a scheduled task on a half dozen servers, in order to periodically delete old IIS log files. I have it running as SYSTEM, and I have it set to run with highest ...
Steve Freeman's user avatar
0 votes
1 answer
489 views

How to access WSL files from Windows 11 task scheduler script

In .BAT file running from Task Scheduler task as administator user eriting to file Windows Subsystem for Linux drive using echo test >\\wsl.localhost\Debian\var\lib\postgresql\12\test throws error ...
Andrus's user avatar
  • 159
0 votes
0 answers
32 views

supress console window appear on periodical schedule program runnig tests

Have windows console program which should be alwys running on VISIBLE CMD WINDOW (Session ID 1). The program checking and displaying network data, but if network resource is not (temporarily) ...
user2956477's user avatar
0 votes
1 answer
324 views

Task Scheduler is not running a task to the second

In Windows Task Scheduler, one of my tasks is scheduled to run at 4:14:58 PM, but it's running at 4:15:00 PM. To rule out any underlying problem, I scheduled the task to run at 4:17:00 PM, and it ran ...
Raj Narayanan's user avatar
0 votes
1 answer
280 views

How do I prevent this dialog from popping up when running a VB script from task scheduler?

This is the undesired dialog that pops up when I run a Task in the Task Scheduler that just calls a VB script. Any idea how to make my Windows understand, that I do want to run the .vbs file using the ...
lenny's user avatar
  • 127
1 vote
1 answer
1k views

Cannot run .exe from Task Scheduler same as in PowerShell window

I am trying to run an .exe from within a PowerShell (PS) script that is started from Task Scheduler (TS). The .exe does not execute, although it is listed in Get-Process. If I run the script manually ...
LouF's user avatar
  • 71
0 votes
1 answer
563 views

Task Scheduler wait until first logon of the day but thereafter guarantee only run at 1 hour intervals

I am trying to create a task in task scheduler to run every hour and pop up a dialogue that lets the user pick from a list what activity they are currently working on. These tasks need to be spaced ...
Greedo's user avatar
  • 767
1 vote
2 answers
3k views

PowerShell inspect Task Scheduler job history and report issues

I am trying to write a PowerShell script to look at a server's task scheduler logs for a specific task. I want to know if there are any errors or anything out of the ordinary. Typically I see event ...
DawgFather's user avatar
1 vote
0 answers
121 views

Powershell script to find task scheduler issues [closed]

I am trying to write a powershell script to look at a server's task scheduler logs for a specific task, and I want to know if there are any errors or anything out of the ordinary. I typically see ...
DawgFather's user avatar
0 votes
1 answer
417 views

how to import multiple batch jobs in a scheduler software in one go

I have multiple batch files already created; each should be run at a specific date and time. I want to import them quickly into a task scheduler application in one go. I did some research but could ...
Emtel NOC's user avatar
0 votes
0 answers
594 views

In an elevated Powershell prompt, why does Get-ScheduledTask always fail with "Catastrophic failure"?

I want to use Powershell to enable and disable a Scheduled task, but Get-ScheduledTask task cannot access all the tasks that appear in the Task Scheduler GUI. I read on StackOverflow that I should try ...
Charlweed's user avatar
  • 255
1 vote
0 answers
1k views

How to get rid of scheduled task "\Microsoft\Office\Office Serviceability Manager"?

I wanted to disable this task, but whatever it is there is something that re-enables the task again behind my back. Allegedly some component running as NT AUTHORITY\SYSTEM. I can see it from the event ...
0xC0000022L's user avatar
  • 7,073
0 votes
0 answers
141 views

Task Scheduler not executing python scripts after IP address change

I have some tasks that run python scripts on a windows 10 virtual machine; for some reason, after changing the IP address, those tasks can't be run. They don't even run when I manually try running ...
prismo's user avatar
  • 101
0 votes
1 answer
715 views

How to enable/disable windows defender on schedule

I want to enable/disable Windows Defender via Task Scheduler. The reason I want this is because I'm running an automatic backup via Backup and Restore (Windows 7) option and it keeps failing because ...
Doga Oruc's user avatar
  • 101
0 votes
1 answer
1k views

How to adjust MsMpEng.exe (Windows Defender) scanning schedule when Task Scheduler has no effect?

Every day around 11 PM my CPU use goes to 100% and I hear fans spinning up. Task Manager shows it's C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2207.7-0\MsMpEng.exe. Resource Monitor shows ...
JustAMartin's user avatar
  • 1,571
0 votes
0 answers
335 views

Force Windows to trigger scheduled task in Battery Saver mode

I have several scheduled tasks in Windows 10 which usually start by time trigger or by computer startup trigger. These tasks run as SYSTEM account. But when Windows gets into Battery Saver mode all ...
Denis A's user avatar
0 votes
1 answer
175 views

Alternative to task scheduler on windows that might be allowed by network admins

I would like to run a command (to sync two folders) each time I log in. Unfortunately I am using a (Windows 10) work computer where access to task scheduler has been tuned off, and I obviously don't ...
vorpal's user avatar
  • 113
0 votes
1 answer
490 views

How do I schedule an app to launch on Linux?

How would I launch a graphical application, like firefox or gnome-calculator, at a certain time. at does not work for this; i.e. echo "firefox" | at now does not launch firefox. Cron might ...
Jonathan Strange's user avatar
0 votes
1 answer
98 views

Task scheduler to restart a program when GPU temps are high

I am running multiple GPUs in my system for mining and used MSI afterburner to set the overclocks. I have identified an issue where one of GPU gets non optimized once the ambient temp of my room rises....
Sharad Choudhary's user avatar
0 votes
0 answers
34 views

How to change the number of devices in a endurance test file while scheduling with windows explorer?

I have a bat file that takes 'number of devices' as an argument, runs a performance test and puts the results in a 'results' folder. I am trying to automate running the bat file every hour, which can ...
Jibin's user avatar
  • 1
0 votes
1 answer
818 views

cmd.exe Appears to Hang on Launch in Scheduled Task

I have an application I've built to replicate data across a couple of different databases. This application is currently running via a Scheduled Task on a Windows Server 2019 VM at 5:00 A.M. daily. ...
G_Hosa_Phat's user avatar
1 vote
1 answer
2k views

Command prompt or PowerShell to connect any available network?

Is there a way to schedule window connect to any network if it available by using command prompt or powershell? Here is the scenario: My computer need to connect to a network 24/24 I have 3 wifi ...
Antonio's user avatar
  • 13
1 vote
2 answers
5k views

How to daisy chain tasks in the Windows Task Scheduler to run consecutively?

When one scheduled task is completed, I want another task to start immediately after. Task #1 already has 32 actions, so I cannot add another action. So I figured "Oh, I'll just split my single ...
Jon Grah's user avatar
  • 593
1 vote
0 answers
326 views

Task-scheduler: cannot view/edit/run the tasks CREATED BY OTHER WINDOWS USER

We created tasks using one windows user and we configured it in such a way that service account will run the task but not the windows user. Now the issue is when I login with other windows user I am ...
user2515056's user avatar
0 votes
1 answer
770 views

Running as an admin, is it possible to create a non-administrative scheduled task?

I'm working on a project responsible for establishing three callbacks for the execution of commands. These are supposed to represent three different scenarios: Regular Command Prompt, Administrative ...
Lucas's user avatar
  • 1
1 vote
0 answers
285 views

Windows task scheduler: when using the "repeat task every" option, I can't prevent the scheduler to trigger script execution when resuming from sleep

Using Windows task scheduler, I want to trigger script execution each hours (for instance at 20h15, 21h15, 22h15 etc...) when the computer is awake but NOT when it is in sleep/hibernate mode. When the ...
Via_fx_24's user avatar
0 votes
0 answers
146 views

Scheduled Task 'hangs' and blocks Octopus when it is trying to disable the task

In our organization Octopus is used to deploy on-premise web applications and background tasks on a Windows Server. During deployment Octopus disables all scheduled tasks before deploying several ...
Paul Sinnema's user avatar
0 votes
0 answers
654 views

Windows server's task sheduler not working after few months

I am using windows task scheduler to run few tasks. But the tasks stop running time to time. May be after few months. Can I know why this happens? dose this happen because of user password expiration?
ashanrupasinghe's user avatar
2 votes
1 answer
396 views

Custom Scheduled Tasks in Win11 causing PowerShell & CMD.exe pop-ups - how to make them silent / background tasks?

How can I make these run silently in the background? Here is my PowerShell script: rm C:\*.jpg rm C:\*.doc rm C:\*.pptx rm C:\*.xls rm C:\Users\*.jpg rm C:\Users\*.doc rm C:\Users\*.pptx rm C:\Users\*...
SamAndrew81's user avatar
1 vote
0 answers
323 views

Task Scheduler is not executing Start-Sleep in PowerShell script

I have a file called XLStoXLSX.ps1 which I am running it using a (.bat) file from Task scheduler as below : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File "E:\Conversion XLS to ...
HAJJAJ's user avatar
  • 121
0 votes
0 answers
341 views

how do I send an HTTP request when my pc goes to sleep or shutsdown

I am trying to set up a system where when my pc goes to sleep or shutsdown it sends an HTTP request to a raspberry pi on my local network which then performs some actions. Currently I have written a ...
Surt McGert's user avatar
0 votes
0 answers
425 views

Automatically Open a File when A certain directory is opened in Windows Explorer

Is it possible to open a certain text file or a file with specific extension, when I open a particular directory in Windows Explorer in Windows 10? Here is one possible scenario for this request: I ...
DigitalNomad's user avatar
  • 1,678
0 votes
0 answers
260 views

Is Windows 10 scheduling algorithm throttling back my processes?

I have a 10-core, 20-thread Intel Core i9-7900X 3.3GHz CPU. I've been running between 18 and 20 threads on it for around four years, mostly under Windows 7. A few months ago I switched to Windows 10. ...
theonetruepath's user avatar
3 votes
2 answers
2k views

Windows task scheduler not calling the script when trigger is true

I have scheduled the in-built windows task scheduler to run python code every day, the trigger time is 11.14 AM. The thing is, I told the scheduler to run cmd and invoke the keywords python pathtofile....
TechGeek's user avatar
  • 215
0 votes
0 answers
2k 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 ...
Brute's user avatar
  • 23
3 votes
2 answers
7k views

Can't find scheduled task in Task Scheduler

I added a custom task to startup my Calendar app (Windows 10) on every bootup. Now I want to stop that from happening, but I cannot find the task anywhere. In Task Scheduler, there is no custom tasks ...
kandyman's user avatar
  • 463
2 votes
1 answer
779 views

How to shut down and start up Debian server on a preset schedule?

I have a basic home server running Debian 11, which I am using to self-host a few things. I would like to set it up, so that it does not run during the night. Basically, I am doing this out of noise ...
MadPhysicist's user avatar
0 votes
0 answers
2k views

Scheduled Task Launch Failure - 2147944309

There is a scheduled task that executes a script. It was running fine until one day it started to fail with 'Task Scheduler failed to start "Task" task for user "domain account". ...
user2073183's user avatar
0 votes
0 answers
1k 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 ...
user1977050's user avatar
0 votes
1 answer
2k views

Win 10 - Task scheduler not running when specifying a domain account as local admin

I have a gpo that adds a domain account to be a member of the local administrator group on a domain joined pc. I can see the user is part of that group, and have the task scheduler set to run whether ...
lerizini's user avatar
0 votes
0 answers
238 views

Windows task scheduler website opener

Yes I know this has been handled in various threads dating back to 2012 and such, but hear me out please. I've seen multiple methodologies for opening a web page in task scheduler varying from using a ...
CptCrunch's user avatar
5 votes
1 answer
5k views

Allowing non-admin users to trigger Task Scheduler task via shortcut

I have a piece of software that can only be licensed under the current user, and I need to have it available on a lab machine where I don't know who will be logging in. I have a script that runs in ...
Emilio Garcia's user avatar
1 vote
1 answer
727 views

Create Task Scheduler adding wake computer condition using batch script

I have a batch script to create a task scheduler but I want to add the condition to WAKE THIS COMPUTER TO RUN THIS TASK. The purpose of this task is the wake the computer from sleep mode. I have ...
VB88's user avatar
  • 393
0 votes
1 answer
803 views

Running a program before Windows login (Task Scheduler fails to execute)

I'd like to run a small *.exe written in AutoHotkey before the Windows user logon. I created a scheduled task for this, but it doesn't seem to work. In the task scheduler it reads "The last run ...
David.P's user avatar
  • 522

1
2
3 4 5
20