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
22 views

Change windows 11 desktop wallpaper in response to calendar events

I want to find a way to make my desktop background respond to calendar events by changing colours (eg. work - blue background, study - grey, bedtime - black) just as a subtle reminder of what I'm ...
Esodam's user avatar
  • 1
1 vote
1 answer
110 views

Batch files run through Task Scheduler aren't working as intended

This is the code I am using. It is something I found on other posts on this site. Script Code #1: @ECHO OFF SET EXEName=TcpSnd.exe SET EXEFullPath=D:\ComputerRX\Pharmacy\TcpSnd.exe SET ...
RPhZach's user avatar
  • 11
0 votes
0 answers
19 views

How to create wake-up task on Win 11

I need to execute some apps always when the machine wake up on the mornings. Tried to create Scheduled tasks like below, but it didn't work, when i wake up the machine, nothing happens. What can i do ?...
delphirules's user avatar
0 votes
0 answers
5 views

Task scheduler hibernate after 18:00 with task repeat issue

My use case: Hibernate computer after 18:00 if it's being idle for 10 minutes. But if I turn it on after hibernation I would like this task to be repeated every 10 minutes till next morning. My setup ...
vukis's user avatar
  • 101
0 votes
0 answers
27 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&...
HAJJAJ's user avatar
  • 121
1 vote
1 answer
44 views

How to run wsl using Task Scheduler without loging?

According to Task Scheduler- Batch "Run whether user is logged on or not" not working and other articles, "Run whether user is logged on or not" requires pure batch processing ...
BrandonStudio's user avatar
0 votes
0 answers
13 views

Task Scheduler (Win11): is it possible to delay multiple ACTIONS under a single task?

Is there a way to delay multiple Actions under a single Task? Something like: Act1: do this, wait 2 secs Act2: do that With "Actions" I mean those under this tab section, where you can ...
hexaae's user avatar
  • 166
-1 votes
0 answers
23 views

scheduled task arguments cause task not to run

So i've got a powershell script that runs as a scheduled task (ST). Now i've added a 'Filter' param to the script to make it more flexible. When i create a new ST and add the filter to the arguments ...
RockYoClock's user avatar
0 votes
1 answer
129 views

How to pass arguments from a windows 10 scheduled task to a powershell script onLock and onUnlock events/triggers

I am trying to setup the following scenario using a windows 10 task scheduler. A logged in user locks or unlocks the workstation A powershell script gets triggered and the PC-NAME and a USER_NAME of ...
CAIB-scay-lact's user avatar
0 votes
1 answer
111 views

Starting a Scheduled Task from Command prompt gives Access Denied

I have a FreeFileSync setup that backups my files. I need non-admin users be able to launch the backup. I created a scheduled task with the name "FreeFileSync PC Backup" and configured it ...
LPChip's user avatar
  • 61k
0 votes
0 answers
81 views

How to run a batch script completely and automatically on event such as sleep/hibernate and shutdown event using task scheduler?

I have written a batch script to perform some folder synchronizing task. I have scheduled the script to execute using task scheduler on events such as sleep/hibernate(kernel power event id 42) and ...
Harsh's user avatar
  • 1
0 votes
0 answers
50 views

MacOS pmset — Schedule different wakeorpoweron per weekday

Related questions: Sending multiple pmset repeat schedules to a Mac Pmset multiple repeating schedule pairs What I am trying to do pmset repeat wakeorpoweron MW 9:00:00 wakeorpoweron TRF 11:00:00 ...
Alex Recuenco's user avatar
1 vote
1 answer
92 views

Tell Linux scheduler not to use certain CPU cores at runtime?

I want to absolutely remove certain CPU cores from Linux scheduler. All I found on the Internet is adding isolcpus to grub with rebooting. But it there a way to do it at runtime (without reboot)?
budoattack's user avatar
1 vote
1 answer
292 views

How to make sure a task is run at Windows startup?

I have trouble running a PowerShell script and/or and .exe file on boot with Windows (both win10 and win11). I have tried multiple methods: Put the script inside shell:startup Create a task with Task ...
Livy's user avatar
  • 1,126
2 votes
0 answers
33 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 ...
Audio.Anchorite's user avatar
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 ...
moninah's user avatar
  • 35
0 votes
1 answer
103 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 ...
moninah's user avatar
  • 35
1 vote
1 answer
229 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 "...
gehovev361's user avatar
8 votes
1 answer
3k views

Firefox keeps implementing task in Task Scheduler

There is a task in my Task Scheduler added by Firefox called "Firefox Default Browser Agent". Every 10 minutes it takes focus away from what ever I'm doing and opens a cmd for about 0.01 ...
ToMakPo's user avatar
  • 315
0 votes
0 answers
127 views

How to automate NirSoft MultiMonitorTool using Windows task scheduler?

I'm using the freeware software MultiMonitorTool to automate the configuration of displays on a Windows 11 computer. I got two Batch scripts that "do" (disable the physical display) and &...
Florian Wolters's user avatar
0 votes
1 answer
1k views

Configuring a scheduled task to run whether or not a user is logged in Powershell

I'm setting up scheduled tasks in Windows Server 2016 through Powershell (not through schtasks.exe). $user = "Administrator" $trigger = New-ScheduledTaskTrigger -Daily -At 0:00 $action = ...
alex's user avatar
  • 186
0 votes
3 answers
61 views

Batch (or some other file) to have scheduled in Task Scheduler for a popup that leads to a website

I am trying to create a batch file (or some other file) to show a pop up reminder with a yes/no option that I can get set up to run at a designated time in task scheduler. This will be planned to run ...
daf0555's user avatar
0 votes
1 answer
137 views

Network shares not available in Windows scheduled task

I have a number of scheduled tasks that run PowerShell scripts that need to access files on a Qnap NAS server. I learned some time ago that if I set "Run whether the user is logged on or not"...
Grant156's user avatar
0 votes
1 answer
167 views

Move files from local to network drive without stealing away focus on production computer

I am looking to move files from local computer to network drive as repeated task once every 24 hours. I have tried couple of things but they all end up stealing away focus on the application as the ...
TSS's user avatar
  • 1
1 vote
1 answer
1k views

Disable Microsoft Edge Restore Pages Functionality

I scheduled a batch script with Task Scheduler to routinely close and reopen Edge to my website once a day while the browser is opened in Kiosk mode. I have: Taskkill /F /IM msedge.exe :: wait three ...
sushi's user avatar
  • 115
0 votes
1 answer
452 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., ...
Wyap005's user avatar
0 votes
0 answers
45 views

console created scheduled task does not exist?

Creating scheduled task form command line with elevated privileges in windows 10: schtasks.exe /Create /XML "FILES\test.xml" /TN "TEST" /RU "SYSTEM" /RP it report ...
user2956477's user avatar
0 votes
0 answers
119 views

In Windows 10, is there are way to run a specific task either at a certain time or at the time of log-on?

I have registered the following task task to run at 7am: %SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\...
Yoblo's user avatar
  • 1
1 vote
1 answer
345 views

Windows 10 Wi-Fi hotspot on/off

I use my Wi-Fi mobile hotspot frequently. Is it possible to set it up to turn on/off at set times of day? Is it possible to set it to turn on when specified Wi-Fi devices, such as phones or laptops, ...
E1251's user avatar
  • 11
-1 votes
2 answers
129 views

VBA - Schedule tasks on oddly particular days

So I'm learning VBA with a lot of excel projects at work. I'm trying to see if I can get a macro I wrote to execute at certain times, autonomously. I've read articles on how to write a script to open ...
Patzy's user avatar
  • 1
0 votes
1 answer
1k views

Powershell: Get-StoredCredential not working when script is run from task scheduler

I am writing a powershell script which shall periodically run to backup the contents of a remote folder. That remote folder is mapped as a WebDav share to my Windows drive G:\. This post and this one ...
Traveler's user avatar
  • 326
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 ...
Name's user avatar
  • 433
0 votes
0 answers
72 views

Why doesn't the task scheduler wake up the laptop?

The task executes, but it the cannot wake up computer in sleep (not hibernation) . Task's parameters: General: Run only when user logged on With highest privileges Configure to win10 User: standart ...
Palm_Thief's user avatar
0 votes
0 answers
90 views

Task Scheduler's idle settings

I want a Windows 10 Task Scheduler trigger to run a batch file that puts the computer to sleep at 8:10 AM of each day only if the computer has been idle for 1 hour. And here is my settings: Problem ...
idn's user avatar
  • 109
1 vote
1 answer
697 views

Programmatically Enable LG Gram Laptop Keyboard Backlight at Startup

I can't find anywhere how to automatically have the backlight turn on at either startup or after sleeping/hibernation after triggering a login event. Is it possible to turn this on via a registry ...
RTG's user avatar
  • 11
0 votes
0 answers
796 views

How to schedule windows task with trigger logoff/shutdown and without elevation or stored credentials?

Important: Please be aware, I search for a solution does not need either elevated rights (high-user-integrity) nor user credentials to be entered. So, this is no duplicate. Background story: In ...
Dragodraki's user avatar
1 vote
1 answer
578 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 ...
PAT_The_Whale's user avatar
0 votes
2 answers
164 views

Does Task Scheduler still run tasks even if the PC is unresponsive?

I have a PC that's prone to freezing, no blue screen or any errors, just ends up being unresponsive. The only fix I can think of is just restarting the PC. I created a new scheduled task which will do ...
KevGo's user avatar
  • 11
1 vote
0 answers
98 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
0 answers
35 views

How to automatically set up a series of reminders whenever a new file is created in a folder?

I want to do that on a Win11 machine. Let's say folder A has sub-folders B, C... Whenever a new file of a .xyz extension is created in any of them (but not when modified), a series of 6 reminders is ...
longtry's user avatar
  • 101
0 votes
3 answers
4k views

How to delete all contents of a folder without deleting the folder itself

I am in the process of setting up a shared network drive, that gets emptied periodically. Its purpose is to provide an easy file sharing option for the users. Since I can't enforce them to always ...
fraenzz's user avatar
  • 123
0 votes
0 answers
194 views

Windows task scheduled powershells script that uses powercfg.exe prevents system from sleeping

Long story short, I have a task scheduled to execute a PS script ever 15 minutes that is checking electricity spot price. When it's higher than I want, it sets powercfg.exe -x -standby-timeout-ac 60 ...
red's user avatar
  • 1,948
0 votes
1 answer
369 views

Scheduled Task as Administrators doesn't run at Log On for some users

I have deployed a Windows 10 Scheduled Task on about 250 PCs, to run at Log On as Administrators with Highest Privileges. I used a batch file to remotely install the Task on these PCs, and it runs on ...
Greener's user avatar
0 votes
1 answer
125 views

Keep User Instance Signed-in, Signing back in, if signed out

We have a requirement to have an executable running on a specific user's profile to enable our reports to run for some 3rd party software we use. It's fine if the session is 'disconnected'. Auto-boot ...
Anthony's user avatar
0 votes
0 answers
238 views

Schedule tasks on windows 11: administrator has no permissions

Trying to schedule a task, Enter user account information for running this task. User account selection drop down: sa abc700ge5d28c9a2 <myUserAccount> Where do the first two user accounts ...
eastwater's user avatar
  • 131
0 votes
2 answers
1k views

Tenda AC9 - Current Time: 1999-12-31 18:31:13 (unsynchronized with internet time)

I have a Tenda AC9 (AC1200) and I can not change the date that appear on time settings and I do not have any manual changes or automatic internet one to synchronize, so this problem started 1 day ago ...
Razvan's user avatar
  • 1
1 vote
1 answer
168 views

Scheduled Python task no more executing

I have a backup task written in Python 3.7.1 and I scheduled it for automatic daily execution via the Task Scheduler. Until recently, it worked seamlessly, and I could see its activity on a console. ...
Yves Daoust's user avatar
1 vote
0 answers
116 views

Windows Scheduler, process terminate event trigger fail because process started from external drive don't use disk letters

I am searching for posts that tell people how to start a new task when a specific process got terminated, and finally found some old posts such as "How to start a program when another one is ...
Juser's user avatar
  • 11
1 vote
0 answers
391 views

Task Scheduler "stop task if it runs longer than" doesn't work

I try to use "stop task if it runs longer than" in Windows 10 Task Scheduler both inside the task trigger and inside the Settings tab, but it actually doesn't stop the program in the time ...
Fofe's user avatar
  • 11
0 votes
1 answer
703 views

Windows 11 using Task Scheduler to change the Windows light/dark theme EXACTLY like how Settings would do it

Since Windows 11 doesn't have the light/dark theme depending on time of day, I decided to implement one through Task Scheduler. Basically at certain times, I'd change the binary values of Computer\...
Choop's user avatar
  • 13

1
2 3 4 5
20