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.
356
questions
0
votes
0
answers
15
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 ...
0
votes
0
answers
28
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&...
2
votes
0
answers
34
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
70
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
127
views
Task Scheduler no longer running VBS script
so I've been trying to get VLC player to skip to the next file at a specific time (10am). I've got the following script that worked fine for a few days, and then stopped completely.
Set WshShell = ...
0
votes
1
answer
112
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
234
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 "...
0
votes
1
answer
478
views
How do I set Task Scheduler to execute Windows Service at __:00/15/30/45 am/pm from start up?
To be more precise, this is a failsafe that I am trying to create for my windows service. For information, I need my windows service to extract data from a server at 15mins intervals everyday. E.g., ...
0
votes
1
answer
205
views
Triggering a scheduled task using process ID (Windows 10)
How can I trigger a task in the Task Scheduler using a process ID that I get from the Task Manager? Sort of similiar to the event ID from the Event Viewer.
My first solution was to use the event ID ...
0
votes
0
answers
33
views
In Windows Task Scheduler, Task runs at startup
So i have a Sleep.bat file that runs at say 10pm.
Sometimes, it runs the next morning when i turn on my computer.
it has always had the box unchecked
next to "run task as soon as possible after a ...
0
votes
0
answers
140
views
How to create an scheduled task at startup with the extra condition that no user logins after some specific minutes?
I know how to create Windows scheduled tasks that runs after that computer is idle for some minutes/hours. But my question is different.
I want to create a task after startup that computer is idle ...
0
votes
0
answers
199
views
Task scheduler runs a task immediately after logon even when delay is set
I create a task to run 5 minutes after login and automatically repeat every 5 minutes. But each time I log in, the task will run immediately without delay. Is this due to the repeat settings?
The ...
1
vote
1
answer
601
views
Windows Task Scheduler Run whether user is logged on or not On remote Server
I have a Powershell script I want to schedule. With this script, I want to send out an email.
When scheduling it only when I'm logged on, everything runs fine. The email gets sent out, no issues ...
1
vote
0
answers
99
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 ...
0
votes
2
answers
52
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"&...
0
votes
0
answers
49
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[@...
0
votes
0
answers
28
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 ...
0
votes
0
answers
133
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 ...
3
votes
1
answer
280
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 ...
1
vote
2
answers
330
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 ...
3
votes
1
answer
2k
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&...
0
votes
1
answer
620
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....
2
votes
0
answers
510
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 ...
1
vote
1
answer
264
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" &...
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....
0
votes
0
answers
83
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" && ...
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 ...
0
votes
1
answer
66
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 ...
7
votes
4
answers
4k
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 ...
0
votes
0
answers
658
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?
0
votes
1
answer
608
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 ...
4
votes
4
answers
3k
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 ...
2
votes
1
answer
2k
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 ...
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 ...
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 ...
1
vote
0
answers
16
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 ...
1
vote
1
answer
1k
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 ...
1
vote
0
answers
158
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 ...
3
votes
2
answers
16k
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 ...
0
votes
1
answer
964
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 ...
0
votes
1
answer
112
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'...
0
votes
1
answer
1k
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 ...
0
votes
0
answers
65
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 ...
0
votes
1
answer
402
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 ...
0
votes
0
answers
119
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 ...
0
votes
2
answers
1k
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 ...
1
vote
1
answer
3k
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 ...
1
vote
1
answer
623
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 ...
0
votes
1
answer
336
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
0
answers
88
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 ...