Skip to main content

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.

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 ...
neubert's user avatar
  • 7,232
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 ...
neubert's user avatar
  • 7,232
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 ...
noob_user's user avatar
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,...
COOLak's user avatar
  • 143
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 ...
Kjell Rilbe's user avatar
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 ...
user67275's user avatar
  • 2,093
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 ...
CJ Dennis's user avatar
  • 1,011
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 ...
Alihamra's user avatar
  • 123
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 ...
mmoomocow's user avatar
  • 121
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="...
Ξένη Γήινος's user avatar
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 ...
susik's user avatar
  • 653
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\...
jdl's user avatar
  • 263
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 ...
user67275's user avatar
  • 2,093
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 ...
Rachid's user avatar
  • 19
-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 ...
Ξένη Γήινος's user avatar
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 ...
McQuestion's user avatar
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 ...
Sayed Arif Hakimi's user avatar
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 -> ...
Roberto Ewaldo's user avatar
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 ...
mellowbug's user avatar
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\...
PolisP's user avatar
  • 65
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 ...
SteveSimons's user avatar
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>...
James Penner's user avatar
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 ...
Richard Harris's user avatar
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 ...
dza's user avatar
  • 240
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 ...
Trevor Sullivan's user avatar
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 ...
Emanuele Polonia's user avatar
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 ...
A Alvarez H's user avatar
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 ...
Andrus's user avatar
  • 159
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 ...
Yanxi's user avatar
  • 3
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 ...
eyettea's user avatar
  • 121

15 30 50 per page
1
3 4
5
6 7
19