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
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 ...
0 votes
0 answers
20 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 ...
2 votes
2 answers
18k views

Downloading all files from URL Folder to local folder

I want to download all contents from a url using Windows 10, like https://example.com/folder This folder may contain 100 files, and I want to put them all into C:\backups I am going to schedule this ...
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 = ...
1 vote
1 answer
4k views

Running batch file through a service

I'm trying to schedule a batch file to run through a third party application, however the output file doesn't get created in the directory. If I run the .BAT file from the command line, it works ...
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 ...
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 ?...
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 ...
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&...
1 vote
2 answers
7k views

How to solve PowerShell error "Cannot connect to CIM server. The specified service does not exist as an installed service"

I'm trying to run a simple PowerShell script invoked from a .bat file. The script's purpose is to update the properties of an existing Windows Task Scheduler task so it will run at a time specified ...
2 votes
2 answers
10k views

How to run a PowerShell script at logon for all (current and future) users with elevated permissions without UAC

I'm building a login script for our company. Some of the things it will do include installing printers, mapping drives, setting wallpapers, etc. Many of these things will require elevated permissions....
1 vote
1 answer
7k views

Reboot the server at a given date and time

I need to schedule a reboot of a server every other Saturday at 11 PM. I need to get this automated and not have to run it manually. I have tried SCHTasks but the client does not accept and needs a ...
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 ...
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 ...
1 vote
1 answer
4k views

Run task forever in Windows Scheduler, restart if not running

There's a lot of ambiguity about Windows' Task Scheduler ability to receive return codes from scripts. I've found several useful Stack Exchange answers but none of them quite fit my need. I'm ...
0 votes
1 answer
6k views

Run Windows command line in Task Scheduler without opening a cmd window

I set up a Windows task schedule to run every five minutes. The task starts the cmd.exe program and runs a command. The problem is that every five minutes a cmd window is opened and it's annoying. Is ...
0 votes
1 answer
4k views

Windows Server 2012 does not run batch file correctly from scheduled task

I have a batch file that's only 3 lines long. What it does is simple: type C:\data\file.bak >> echo "" >> file.log.bak cscript "C:\data\Move filesA.vbs" cscript "C:\data\Move filesB.vbs"...
-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 ...
0 votes
1 answer
127 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 ...
3 votes
2 answers
2k views

Windows task scheduler not calling the script when trigger is true

I have scheduled the in-built windows task scheduler to run python code every day, the trigger time is 11.14 AM. The thing is, I told the scheduler to run cmd and invoke the keywords python pathtofile....
0 votes
1 answer
110 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 ...
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 ...
2 votes
2 answers
5k views

How to target an event by the process name as well as the ID?

I have managed to create a scheduled task that will be triggered by an event ID. For example, I have a task that will run winver.exe whenever event ID 4688 is logged. So if I run notepad.exe from Run ...
0 votes
1 answer
4k views

Create Dependency Of Scheduled Task On One Another (Windows Task Schedular)

I want to schedule 4 task on windows task schedular. The conditions are 1. Task 1 should run every 30 mins; 2. Task 2 should run every 1 hour; 3. Task 3 should run every 2 hours; 4. Task 4 should ...
1 vote
1 answer
11k views

Why user accounts do "not have permission to run this task"?

I am creating a Scheduled task configured via PowerShell using the XML: $LogonTask_xml = @" <?xml version="1.0" encoding="UTF-16"?> <Task version="1.3" ...
0 votes
0 answers
49 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 ...
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)?
0 votes
1 answer
5k views

GoogleUpdate.exe /ua switch, User account access?

I've noticed that after installing Google Chrome, two new Scheduled Tasks have appeared in my Windows 10 schtasks. One of them has the /tr of C:\Program Files (x86)\Google\Update\GoogleUpdate.exe /ua ...
3 votes
2 answers
8k views

Windows task scheduler not triggering a task on Windows 10

I have a task that is supposed to run a script I made, every 10 minutes, but it just doesn't seem to trigger it. In the task scheduler it says that next run time is in 10 minutes, but when the time ...
1 vote
1 answer
290 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 ...
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 ...
0 votes
1 answer
4k views

How to insert VNC Server license key (automatically) after a PC reimage with MDT

I have a base build PC which has the VNC Server license key inserted and working correctly. I've then taken an image of it via WINPE disk and the DISM command line (.WIM file) Wim file is then ...
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 "...
0 votes
1 answer
102 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 ...
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
3k views

schtasks - Why doesn't this work?

I type this into cmd or in a batch script: schtasks /change /RP user_password /TN "existing_task" /ST H:M If /ST H:M has two digits in the hour it says ERROR: The parameter is incorrect. If /ST H:M ...
0 votes
4 answers
10k views

Scheduling Sequential Tasks in Windows Scheduler

I'm looking for some direction in scheduling sequential tasks within Windows Scheduler. The tasks in this instance are workflows that kick off data ETL and incremental load jobs. We want to only ...
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 ...
1 vote
1 answer
5k views

Task Scheduler - scheduled task to run as SYSTEM not fire

Following the answer here: How can I run a scheduled task as SYSTEM I have created task to be run using SYSTEM account Task to be run on System account But it does not start on scheduled time. ...
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 &...
1 vote
3 answers
3k views

Windows Task Scheduler task doesn't run

I have a frustrating problem. I'm trying to run a vbscript every hour on the hour with Windows Task Scheduler. Windows 10 Pro, not on a domain, logged on locally as a Windows user, not Microsoft ...
0 votes
0 answers
325 views

Scheduled Task keeps creating dllhost processes

I have a scheduled task that runs a Powershell script that sends an http request. This task is ran under a service account. Every time the task runs, it creates a dllhost process, which eventually ...
2 votes
1 answer
11k views

How to make windows task scheduler work UTC and ignore current local timezone?

I want to schedule a task to run at 5 minutes past midnight UTC every morning. My computer automatically adjusts for daylight saving time, so during the winter I have the task scheduled for 00:05:00, ...
2 votes
2 answers
2k views

Scheduled Task does not run after being re-enabled again

I have a lot of scheduled tasks that run, say, every 5 minutes. The trigger is defined as follows. At 10:35 every day - After triggered, repeat every 1 hour indefinitely Recently I disabled and ...
0 votes
3 answers
60 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 ...
2 votes
3 answers
7k views

Windows Task Scheduler starting Excel in background. How to force to start in foreground?

I'm using Windows Task Scheduler to restart MS excel when it crashes, via an event trigger that runs a vbs script (https://stackoverflow.com/questions/18504067/how-to-automate-the-forced-closure-of-...
2 votes
4 answers
14k views

Task Scheduler always launches applications in background. How to launch in foreground?

It is a problem I encountered in Windows 10 task scheduler. I created a basic task whose action is start a batch file as follows: start "BitComet" "C:\Program Files\BitComet\BitComet....
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"...
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 ...
1 vote
2 answers
5k views

How to daisy chain tasks in the Windows Task Scheduler to run consecutively?

When one scheduled task is completed, I want another task to start immediately after. Task #1 already has 32 actions, so I cannot add another action. So I figured "Oh, I'll just split my single ...

1
2 3 4 5
20