Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
4 views

Restrict or prefer specific session ID for scheduled tasks that start interactive desktop login tasks

Is there some way to create or modify a scheduled task so that it will prefer to start within a specific desktop logon session, if there is more than one session logged in for the same user? On ...
0
votes
1answer
10 views

Can't close a program via .BAT after printing PDF document

I need to print copies of PDF document with a delay before printing each copy. I created a new task in the Windows' Task Scheduler and in the Actions tab of the Scheduler I selected my BAT file with ...
1
vote
2answers
69 views

Use PowerShell & System.IO.FileSystemWatcher to detect when a download to a specific folder is complete

I'm attempting to monitor my download folder and trigger a command-line action when a download is completed. This is very similar to another question, How to monitor a folder and trigger a command-...
0
votes
1answer
8 views

MS Project - Scheduled Gap in Resource Time

I have created a simple project (at this stage), but I have noticed, with automatic scheduling that MS project has left a few day 'gap' in a particular resource's scheduled time. See image for 'Isaac':...
0
votes
0answers
14 views

Why doesn't Outlook properly open when scheduled to start using Task Scheduler?

I have scheduled a task in Task Scheduler to start Outlook at a certain time in the very early morning hours so it can execute a macro on startup. My settings in Task Scheduler are as follows. In ...
0
votes
0answers
16 views

How to Automatically connect both WiFi Adapters to a WiFi with Task Scheduler?

When I boot up my PC, it only connects to my WiFi using either the first or second only randomly and rarely uses both automatically. I know I its possible since always connect both and my network is ...
0
votes
0answers
10 views

How to manually trigger the following audit system events?

I am currently trying to set up audit system failure notifications for specified events and I have 3 I'm unsure how to trigger. The notifications will come in the form of a message spawned by Task ...
0
votes
0answers
26 views

No audio in Windows lock screen after sleep

I'm using a homemade solution to wake me up in the morning by playing music. The basic idea is that I set my computer to sleep in the evening, and the next morning a scheduled task wakes up the ...
0
votes
0answers
85 views

Powershell script runs manually in task scheduler but not as schedule task

I installed the PS Scripts on my virtaul machine. My VM is connected to a domain account i have one service account provided. Right now my script is running manually. But when im waiting for the time ...
0
votes
1answer
43 views

How to automate registration of a scheduled task through GPO using PowerShell?

I can manually run the following cmdlet on 10 nodes in AD to register a scheduled task: Register-ScheduledTask ` -TaskName "MyTask" ` -Action $inlinePowershellScript ` -Trigger $...
0
votes
0answers
27 views

Scheduled tasks wake up computer but not shut it down

I set up a scheduled task waking up the computer. After the task finishes execution, the computer shuts down shortly. Is there a way to wake it up, but NOT shut it down?
0
votes
0answers
49 views

Run task every weekday but don't on national holiday

Is there any out of the box solution in Windows Task scheduler to run task every weekday but skip it if it's national holiday like Christmas or, even better, Easter? If not out of the box then script?...
0
votes
1answer
43 views

Enable NUMLOCK when computer wakes for sleep mode using Task Scheduler

I am from the Netherlands so apologies for my English in advance! I am doing everything that is mentioned in this post:click this link. The Powershell script works because when I go to the file and I ...
0
votes
1answer
96 views

Re-run the same .EXE program after previous finished

I have this PaymentAPI.exe program that need to be run, then rest for 5 minutes, then continue new run instance. It is crucial that not more than 1 instance should be running at same time. The running ...
0
votes
1answer
15 views

WIFI auto connect for HTPC in server 2016 standard

I have a htpc that connects to the internet using WIFI as well as gets it lan connectivity through WIFI. Its running server 2016 standard. The machine is set to connect automatically however, when ...
1
vote
1answer
178 views

How to schedule a task with PowerShell to run every hour, Monday to Friday between 8 AM to 6 PM

I need to schedule a task to run: Monday to Friday Every hour from 8 AM to 6 PM I can do this from the regular task scheduler GUI but since I'm using a group managed service account to run this ...
1
vote
1answer
50 views

Scheduling tasks in parallel on Linux

I have N = 128 (say) tasks, task 0, task 1, ... task N-1, that I need to complete. Each task will take an unknown amount of time to complete, and they may be completed in any order. I am on a machine ...
1
vote
1answer
20 views

Windows Task Scheduler doesn't run last instance

I have a Windows Task Scheduler set up to run something every hour. I do this by having it run daily, starting at 12:01 pm, and repeat the task every 1 hour, for a duration of 1 day. This mostly ...
0
votes
1answer
14 views

Run a program when display orientation changes

I've been messing with task scheduler on a tablet recently (completely new to this), mostly for visual things atm. There is a program I run that I need to restart every time the device changes ...
0
votes
1answer
196 views

Windows 7 Task Scheduler is giving me an error saying “The specified account name is not valid”?

I am running Windows 7 on a Dell Precision workstation. I started having this issue right after changing my PC name. I get the error message when in the Task Scheduler Library folder and right-click a ...
0
votes
0answers
91 views

Issues with Task Scheduler when using python script through Powershell

I have a powershell script and at the end it call a python script. Everything works fine. When I am trying to run it through Scheduled task the powershell scripts works fine but when it come for the ...
0
votes
0answers
4 views

How can you link two tasks in MS Project so that they always start on the same day regardless of which one is changed?

The problem i have is that i have 2 tasks that must start on the same day - by different resources as they are both dependent of each other but different resources. If i don't have the resources ...
7
votes
1answer
257 views

'at' command intended behaviour? Launching each commands instead of scheduling

I'm trying to schedule the execution of some programs. I'm using this command: ./tests.o | at 15:00& If I understood correctly, the intended behaviour was to delay execution until 15:00. However ...
0
votes
0answers
24 views

Can't create a scheduled backup on TFS 2017

I'm unable to create a scheduled TFS backup. When I try, the admin app goes busy for a minute then. unfreezes, without saying what happened or went wrong. I was just given permissions to login to the ...
0
votes
0answers
22 views

Is it possible to schedule or delay the click of a mouse?

If, say, I want to complete an action only if I am not present - i.e., I have been gone for a while - can I somehow time when a particular button will be pressed after I give the initial command? I ...
0
votes
1answer
59 views

Creating a scheduled task that runs even if no one is logged in. (Windows 10)

I need to make a "hidden" scheduled task (being created by a .bat, no GUI stuff) that runs when any user is logged in, or if no one is logged in.
0
votes
1answer
55 views

Smartmontools self-test log giving wrong information

I have scheduled all the computers to run a short test every day with smartd but I'm having issues with two SSD's. I see multiple instances of the scheduled test. One run completed; others are still ...
0
votes
0answers
455 views

Robocopy exclude directories with wildcard

I am trying to backup critical folders and their contents on a daily basis so that, should my data drive fail, I have a backup of the important project files but my working data drive is much larger ...
0
votes
0answers
9 views

Is there a way to automatically store reddit post contents from its rss feed?

Say, I subscribed to Unexpected subreddit in Inoreader. And some of the posts were deleted, along with the picture within those posts. I can't see them anywhere, even if I know the post title. But, ...
0
votes
1answer
21 views

How to target an event by contained string?

In powershell script i have line: $LogOnEvents = Get-EventLog -Logname security -Message '*name*адрес:*.*.*.*' -Newest 1 This line every time picking wrong one for me. Problem with event triggering. ...
2
votes
2answers
142 views

How to schedule a run of “docker-compose,” on MacOS, using launchd

I'm building some software with docker-compose, for which I would like to run on a schedule. So I need to schedule a run of docker-compose up, on MacOS (High Sierra, 10.13.3), using launchd. This is ...
0
votes
0answers
11 views

Startup apps launching slower than from scheduler tasks on logon

If i put my app for startup in: C:\Users\\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup They start, but after some delay, if i make a scheduler task to launch an app on logon, then it ...
0
votes
0answers
52 views

How can I ON the check box “If the task fails restart every” checkbox under setting tab in windows task scheduler with schtasks from command line

I need to click the checkbox "If the task fails restart every" checkbox under setting tab in windows task scheduler with schtasks in windows. Below is working fine for creating and starting the task ...
0
votes
1answer
60 views

Automated scheduled hard drive partition copying

How can I automate a scheduled (e.g. once a week) backup of a hard drive partition? Copying partitions is always much faster than interpreting a file system. I'd settle for something that targets the ...
0
votes
0answers
39 views

Is there a way to have a delay window for a scheduled task in the task scheduler

I have a task that I have set up that will auto reboot at a certain time. However, I would like an option for my users to delay the task. I know there is no option for this in the task scheduler ...
0
votes
0answers
18 views

Task scheduler : How to detect that a usb device is unplugged? [duplicate]

I want to launch a Powershell script when a usb device is unplugged. To accomplish that I would like to use a scheduled task but I don't know what event trigger I should use. I already know that to ...
2
votes
2answers
396 views

Unable to run batch starting Excel as scheduled task

I have the following Skript that was previously run manually: set DIR="X:\SYSTEM\MAKROS" X: cd %DIR% start /wait EXCEL.EXE /e-GENERATE_REPORTS BSYSTEM.XLA When manually started, this works just fine....
1
vote
0answers
51 views

Mac OS High Sierra weekday scheduled tasks with launchd aren't working, why?

In an effort to improve my productivity and reduce distractions (after listening to 'Deep Work' by Cal Newport on Audible), I decided to automatically launch and close email and IM apps on my Mac at ...
0
votes
0answers
43 views

I can set up a task to alert me if a scheduled task fails to start. What if THAT task fails (repeatedly)?

This question gives a great way of setting up a task which triggers if another task in Windows Task Scheduler fails to start: Make Windows Task Scheduler alert me on fail However, a commenter brought ...
0
votes
0answers
159 views

Why do group policies block scheduled task script?

I created a scheduled task that launches a powershell script using the local administrator account. I need this task to be executed even when no one is connected to a session, hence I chose the option ...
0
votes
0answers
25 views

Laptop power plan change on “idle”?

Since my laptop usually stays on for nights doing stuffs or downloading something i thought about power plan change when "idle". It wouldn't be problem if laptop would stays really "idle", according ...
2
votes
2answers
2k views

Task Scheduler- Batch “Run whether user is logged on or not” not working

I've created a batch file (EnableDisable.bat) that will disable a Windows Task Scheduler job (SampleJob) on a local system, if a job with same name (SampleJob) is already enabled and running on ...
0
votes
0answers
19 views

How to execute command with cron and additional parameters?

I have a command that should be executed every 30 days. It is easy to put it on cron and do that job for me, but the issue is that after execution the program asks to enter option '1' or '2'. I don't ...
0
votes
1answer
254 views

Disable Windows Task Scheduler job locally if scheduled task is enabled and running on a remote server

I'm trying to disable a Windows Task Scheduler job on local system using a batch file but only if it is already enabled and running on a remote system. Obviously the "[servername]" will be replaced by ...
3
votes
2answers
827 views

How to export Scheduled Tasks configuration

I'm running Windows 2012 R2 Server and I run a lot of Scheduled Tasks. I am afraid that in case something would happened to server and I should create another server I won't be able to restore those ...
0
votes
0answers
17 views

Task Scheduler won't schedule wake timers (while other software is able to do so)

I created a new task, with "Allow this task to wake PC" checked, but "powercfg /waketimers" shows nothing. I tried some third-party apps and they do work as expected. Windows 7 x32 (yeah I know) ...
2
votes
2answers
157 views

How to schedule Server Backup/Recovery process

I have two Windows servers located in different geographic location. One server is used as file server (i.e. shared location and have a directory tree with around 60 Gb of files). I need to have the ...
0
votes
0answers
40 views

GPO Immediate task doesn't run due to idle wait time even though idle settings are not enabled

I want a script to be run everytime GPO is applied (not startup or logon) which will be part of Computer Configuration Preference -> Task Scheduler -> Immediate task. But it seems it doesn't run at ...
1
vote
0answers
48 views

How to run the process with SYSTEM privileges when a scheduled task is created using AutoIt

I have one task which triggers the exe on system start. Task is created with highest privileges and SYSTEM privileges but actual process runs with user level privileges. How to run the process also ...
3
votes
1answer
563 views

Updating a scheduled task with 'repeat every x hours' causes it to be triggered on Windows 10

Synopsis I have a scheduled task that runs a program with highest privileges every 4 hours. On Windows 10 version 1803 (build 17134.81), any update to this task causes it to be triggered as soon as ...