Questions tagged [windows-task-scheduler]
Task Scheduler is a component of Microsoft Windows that provides the ability to schedule the launch of programs or scripts at predefined times or after specified time intervals.
555
questions
6
votes
1
answer
17k
views
task scheduler doesn't seem to be running powershell script like it should
I have the following PowerShell script saved as test.ps1:
# test script
Write-Output "z" >> C:\path\to\log.txt
In the Task Schedule I have it set to "Run whether user is logged ...
1
vote
1
answer
1k
views
deleting entries in History tab of Task Schedule for specific task?
I have Task History enabled in the Task Scheduler and am wondering if there's a way to delete entries in the Task History tab for a specific task.
Case in point: I'm trying to diagnose an issue and ...
2
votes
2
answers
1k
views
windows, run net stat to txt daily with date/time in filename
first time post.
was unable to find similar solutions on this site or others. need a CMD batch file to run "netstat -an" output to a text file daily with a unique file name so the day before ...
0
votes
1
answer
363
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
1
answer
644
views
Windows schedule for Saturday before first Monday in month?
I would like to schedule a task in Windows Server 2019 to run on the Saturday before the first Monday in each month. I fail to see any way to configure such a trigger.
Asking here just to make sure I ...
1
vote
0
answers
387
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 ...
0
votes
0
answers
577
views
All tasks become disabled in Windows 10
Every now and then on my Windows 10 machine, maybe once every 3 months, all of my scheduled tasks become disabled and when I realise this I have to open Task Scheduler and manually reenable them. Why ...
2
votes
1
answer
1k
views
How to run a batch file when user run RDP icon via task scheduler?
I am using windows 10 and looking for a way to clear RDP history ( IP address, Username And Password ). As you know RDP history keeps listed and cannot be deleted Only if you go through registry ...
1
vote
1
answer
3k
views
Run minecraft server on startup without login
I'm using Wakeup Over Lan to start my windows 10 PC and I want my Minecraft server (spigot 1.16.4) when the computer starts. I have a password for my account and don't want to disable it.
so far I ...
1
vote
0
answers
4k
views
How to automate Windows Update with PowerShell?
Why I want to do this:
When Windows Update ran without warning, hogged resources and rendered my computer nearly unusable for a long time,
I had used:
net stop wuauserv
wmic service where name="...
0
votes
1
answer
3k
views
Task Scheduler return code 2147942401
I use this scheduled task for years and it always worked fine. Something weird happened a few weeks ago.
This task executes .bat file which launch python script.
It runs as administrator.
A few weeks ...
3
votes
0
answers
654
views
Schtasks /create /sc onlogon gives me an error
I am trying to create a task that starts up when the user logs on.
I get the following ERROR when creating this task:
schtasks /create /sc ONLOGON /tn ComputerMonitor_LoginCheck /tr c:\users\jdl\...
1
vote
1
answer
1k
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
2
answers
3k
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
2
answers
817
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
1
answer
319
views
How to stop multiple Windows processes with an Event ID trigger?
I'm trying to create a task whereby when one application is closed, another is automatically closed.
For instance, I'm using the Atom.io text editor with the Kite plugin (code AI assistant) on Windows ...
0
votes
1
answer
959
views
Why there is no 'Task Scheduler Library' appear in my Task Scheduler. Also, I can't create a task or do anything with it
Well, I had a problem with my windows startup, where I can't type anything on my search windows. So I had to run 'C:\Windows\system32\ctfmon.exe' every time to fix it (yea, I know there're also some ...
0
votes
1
answer
8k
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
1
answer
939
views
Task scheduler. How does it check for internet loss?
How does task scheduler determine if a internet cconnection is lost? Just by losing connection to the wifi or actually by losing connection to the web? Im asking because ive setup a task with a script ...
3
votes
0
answers
1k
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\...
0
votes
3
answers
757
views
Need to create a .bat or .vbs to load at startup using Task Scheduler that shows me a message box asking OK/Cancel to a matter
I need to create a .vbs or .bat file to be used in a task of Windows 10 Task Scheduler (I know it works for .vbs files, dunno if with .bat files is the same).
What I need is simple: I need to see a ...
0
votes
1
answer
876
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
2
answers
3k
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 ...
0
votes
1
answer
192
views
Task Scheduler ScheduledDefrag, incrementally?
\Microsoft\Windows\Defrag\ScheduledDefrag
in task scheduler, does this actually defrag 'incrementally', maybe with a fixed size at a time, or can it continually defragment a whole harddrive, while ...
0
votes
1
answer
530
views
Windows 10 2004 Task Scheduler refuses to run task (silent failure)
I am running Windows 10 2004 on a desktop computer. I created a task using the Task Scheduler GUI.
Chose the option Run whether user is logged on or not
Checked the Run with highest privileges box
...
1
vote
0
answers
36
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
0
answers
82
views
Close program (not terminate it, just close it as I just pressed X) with Task Scheduler
Any script to do this?
I know of taskkill /f, but I think that one kills the process at hand. I don't want to do that. It's a program that I can close, but its icon still remains in the notification ...
1
vote
2
answers
2k
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
1
answer
700
views
how to have task scheduler notifications to appear on second monitor
So I have created a task and assigned the trigger to activate every 30 minutes. The actions is set up as a start a program(pop up window) I just want it to appear on my secondary monitor instead of my ...
2
votes
1
answer
131
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 ...