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
1 vote
0 answers
7 views

Invoke S0 Sleep using Task Scheduler for all users

I'm trying to get a Windows 10 Optiplex 7000 to go to sleep at 10pm every day. I installed nircmd and created a task in task scheduler to run a .bat file with the following command: nircmd.exe monitor ...
lucdar's user avatar
  • 11
0 votes
2 answers
17 views

Create a task that triggers on a process launch

I'm looking to boost GTA5.exe's priority to "Realtime" whenever it launches So far, I've tried the following trigger: <QueryList> <Query Id="0" Path="Security"&...
avi12's user avatar
  • 127
0 votes
0 answers
20 views

Run a task before windows 10 hibernates

I've set up a task to be triggered by a filter with this query <QueryList> <Query Id="0" Path="System"> <Select Path="System">*[System[Provider[@...
spacehitchhiker42's user avatar
0 votes
0 answers
21 views

Task scheduler: On Shutdown? [duplicate]

In the Windows Task Scheduler, there is a trigger called "On startup". However, I'm looking for "On shutdown", but can't find it. Can you help me make a custom trigger equal in ...
Pingui's user avatar
  • 149
0 votes
0 answers
64 views

Windows 10 Scheduled Task Powershell Script Unable to Turn off Monitors

I'm pretty inexperienced when it comes to Windows scripting (I have a linux background), but I attempted to create a Windows version of a udev rule anyway. I cobbled together pieces from various ...
J Jones's user avatar
3 votes
1 answer
129 views

Task scheduler runs at delayed time during sleep

EDIT 02/03/2023 The following is what I get from running powercfg -energy as suggested by one of the comments. I have a task that is supposed to run at 2 am every day. However I face 2 issues: It ...
tangolin's user avatar
1 vote
2 answers
184 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
3 votes
1 answer
776 views

How can I modify a Windows task schedule via command line without requiring a password?

I can create a task on the Windows 10 command line using SCHTASKS without needing to enter my password. For example: SCHTASKS /Create /TN my_test /SC MINUTE /MO 2 /TR "msg %username% Hello World&...
User's user avatar
  • 3,437
0 votes
1 answer
120 views

How to determine cause of connection attempts from a specific Windows service?

On a locked-down Windows 7 test box on a completely isolated test network, I could account for every incoming and outgoing attempted network connection. Then I temporarily installed the PortableApps....
RockPaperLz- Mask it or Casket's user avatar
2 votes
0 answers
172 views

Schedule a task to run before computer goes to hibernate

I have a command script and I want to run it before the computer goes to hibernate. When I click on the hibernate option, then, before going to hibernate, this task should work. I have tried creating ...
User1991's user avatar
0 votes
0 answers
78 views

Schedule on windows task scheduler with eventid (XML)

i using task scheduler with custom XML to trigger a software when this specific usb is plugin however it can't seems to run does anyone have solution to this ? <QueryList> <Query Id=&...
Eugene Ng's user avatar
1 vote
1 answer
138 views

using the same string of command in windows task scheduler does not work

So when i use the following command in a CMD window warp-cli disconnect && taskkill -im "Cloudflare WARP.exe" && cd "C:\Program Files\Cloudflare\Cloudflare WARP" &...
AwesomeVk47's user avatar
0 votes
0 answers
248 views

Task Scheduler opens file with OpenWith.exe and nested quotes arguments incorrectly

I have associated the ".sh" extension with "C:\msys64\mingw64.exe" so that shell scripts open in MSYS2. This works when I double click on the scripts from explorer, but when ...
goweon's user avatar
  • 1,638
0 votes
0 answers
39 views

How can I stop a scheduled task in W10 from running, while the machine is sleeping?

I have a backup script that runs every two hours through task scheduler. With Modern Standby, the machine remains connected to the network to allow it to receive updates, VoIP calls etc. When I put my ...
NoExpert's user avatar
  • 121
0 votes
1 answer
62 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
50 views

Run a program by the .bat file but not show icon and window of the program when PC is locked and it call by Task Scheduler

I want automation with a batch file before the backup close Tresorit program and after reopen and run Tresorit program. I used this code: tasklist | find /i "tresorit.exe" && ...
balazs21's user avatar
1 vote
0 answers
199 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
42 views

Windows disabling one or more startup items

I am running Windows 11 on a Dell desktop, and I want to load six programs when I start my machine. My problem is that although I have all six programs setup to load at startup, something keeps ...
Tony's user avatar
  • 11
7 votes
4 answers
3k views

How to power-on Windows 10 PC, run task, then shut down again

I want my Windows 10 PC to power-on from "off" in the middle of the night, run a CPU intensive task for a few hours, and then power back off in a clean shutdown. What would it take to do ...
Charlweed's user avatar
  • 255
0 votes
0 answers
283 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
0 votes
1 answer
239 views

How to change idle criteria for windows10 so idle can be triggered at the system resource level I usually idle at?

I learned that there is a property in Win10 to change sensitivity What are the criteria that Windows uses to put the system state on idle? also I learnt that there is certain percentage resource is ...
Ezeewei's user avatar
  • 101
4 votes
4 answers
1k views

How to LOCK computer after 'x' amount of time right after log on

Although there is a VERY similar question : How to lock my computer after a certain amount of time from login? I don't think that it is suiting my needs. I need my computer to lock NOT SHUTDOWN. What ...
DaVinziBoi's user avatar
1 vote
1 answer
968 views

Task scheduler vs shell:Startup

Is creating a task on the task scheduler to run a particular application/script at a startup good or should use shell:startup? I have an old unused computer, am planning to use it to run some python ...
selet's user avatar
  • 11
0 votes
0 answers
1k 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
  • 25
0 votes
0 answers
887 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
1 vote
0 answers
15 views

Why is some process always launched at startup of my Windows-10 PC? [duplicate]

I have a program, called "Product Server.exe", being launched when I (re)start my Windows-10 computer. Launching MsConfig brings me to the task manager, where the "Startup" tab ...
Dominique's user avatar
  • 1,929
1 vote
1 answer
825 views

How to make Task Scheduler open a Document with a specific program?

I have Windows 10 Task Scheduler opening a specific .rtf (also tried changing it to .docx) file on workstation unlock. At present it opens automatically with Wordpad, but I want it to open using ...
dannyzee4's user avatar
1 vote
0 answers
112 views

How to add trigger for Task Scheduler on weekdays on a specific time, except for a certain days

So I have this .bat file that I need to run on weekdays at 1 pm. Adding it is easy, the problem is. Every 1st to 3rd day of the month(ex. January 1 to 3) the 1 pm run must not run but instead, it ...
SanJid's user avatar
  • 29
3 votes
2 answers
8k views

Win 10 Task Scheduler with Microsoft Account

I'm running Windows 10 Pro and have a local admin account. I've set up several tasks in Task Scheduler that are set to "Run whether user is logged on or not" along with "Run with ...
Weedacres's user avatar
0 votes
1 answer
519 views

Windows Task Scheduler: Schedule task to run after reboot after 30 days

In Window 10, I want to schedule a task to run after 30 days but only after reboot (at startup) I cannot combine these 2 triggers i.e. it should run when the system is rebooted after every 30 days. As ...
Faqir Aamir's user avatar
0 votes
1 answer
66 views

Does Windows Task Scheduler overlaps with time trigger

I have created a time trigger for a task that would run daily at 7 pm during, weekdays only. But I also need to set a trigger where it runs at 7 pm, at the 1st to 6th day of the month regardless if it'...
SanJid's user avatar
  • 29
0 votes
1 answer
642 views

Automating commits in a github repository every sunday?

I am using : Google Drive Desktop (as D:/) Github Desktop Windows 10 OS I have : A directory called "myNotes" on my Google Drive ( Which is D:/myNotes on Windows Desktop ). I have a ...
Good Boy's user avatar
0 votes
0 answers
45 views

Windows 10: run cmd at power-on WITH console window

I have a batch file (which sets some stuff up and runs a Python script) that must be run at Windows 10 power-on; not log-on, power-on. The Python script outputs useful diagnostics to the console and ...
Rob's user avatar
  • 141
0 votes
1 answer
218 views

Improving task from Task Scheduler

I have to restart a program after waking up the laptop. The trigger is working (https://www.sevenforums.com/general-discussion/308855-using-task-scheduler-restart-program-upon-wake-sleep.html) Then I ...
kraudez's user avatar
0 votes
0 answers
51 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 ...
jmg999's user avatar
  • 11
0 votes
2 answers
784 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 ...
Thetafinity's user avatar
1 vote
1 answer
2k 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 ...
Omkar's user avatar
  • 11
1 vote
1 answer
457 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 ...
user67275's user avatar
  • 1,860
0 votes
1 answer
232 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
0 answers
43 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 ...
kal's user avatar
  • 11
1 vote
0 answers
189 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
  • 1,860
3 votes
2 answers
422 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 ...
Tim VG's user avatar
  • 51
0 votes
1 answer
799 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 ...
user's user avatar
  • 388
0 votes
2 answers
207 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/...
user3111616's user avatar
0 votes
1 answer
719 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
  • 1,860
0 votes
0 answers
131 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 ...
lemeie's user avatar
  • 1
0 votes
2 answers
1k 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
436 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
0 answers
412 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 ...
kyle1elyk's user avatar
4 votes
2 answers
3k 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, ...
Index's user avatar
  • 139

1
2 3 4 5
7