Questions tagged [scheduled-task]

A scheduled-task means the launch of a program or script at predefined times or after specified time intervals.

Filter by
Sorted by
Tagged with
1
vote
2answers
125 views

Is it possible to scale up an AWS ECS cluster when a Scheduled Task runs?

I have an AWS ECS cluster whose only purpose is to run a scheduled task every 12 hours. Currently, I leave the cluster scaled to 1 instance so the task has somewhere to run. I would instead like to ...
0
votes
1answer
53 views

Can scheduled task actions run in parallel?

In windows 10, what is the default behavior when running a scheduled task with two or more actions. Will they run in parallel or will the operating system wait for each actions to finish before ...
0
votes
0answers
15 views

Schedule access to windows network share (grant, revoke permissions on certain date for certain user)

We are looking at automating the task of granting and revoking Windows network share permissions to certain users (apprentices) that move through different departments in the company. Each time they ...
0
votes
0answers
30 views

Task scheduler with one exception per year

Currently, we have tasks with Windows Task Scheduler that run each night. The tasks pump data from one database to another. Data is also transformed in this process. It is not a one to one copy. The ...
0
votes
0answers
14 views

Unable to backup SQL to a UNC path with a gMSA

I'm trying to automate backups using Ola Hallengren's backup scripts. I'm testing this out on a SQL express instance 2008 R2 (I know it's EOL today). I've setup the jobs and I created a scheduled ...
0
votes
1answer
52 views

Running scheduled task a period of time after another one started

I have two scheduled task running on my Windows Server. One of them is to run a database and the other is to run an API to access the database. I need the API task to run after the database task has ...
0
votes
1answer
60 views

task scheduler powershell foreground

I am using windows server 2016 "scheduled tasks" to run a powershell script. For some reason, i would see the script run in foreground , and not in background. Any idea to resolv this ? Thanks
0
votes
0answers
20 views

scheduled task not running

i have a problem, created a scheduled task, to run a bat file. it's programmed to run with administrator credential, works in other tasks. the file is a normal bat file. the code inside the file is ...
0
votes
1answer
35 views

schtasks command has an unclear error

I am trying to change the expiry date of an Scheduled task using powershell because there are more than 40 tasks for users of same thing. schtasks.exe /Change /tn "Cache USer" /u "mydomain\...
0
votes
0answers
38 views

runas /netonly, scheduled tasks, VBS to send password - don't work

I have a powershell script to backup Enterprise Architect (EA) similiar to that: https://www.sparxsystems.com/forums/smf/index.php/topic,41894.msg251111.html#msg251111 EA works from local computer ...
1
vote
0answers
30 views

Do I need to have identical user account on different domains to run a net use command via batch script?

I have a Task Scheduler task that runs a batch file which copies a file from server1 to server2 on a different domain. Note:The scheduled task is running on Domain_A using user accounts created to ...
0
votes
1answer
38 views

CRON starts to skipping to the next minute

I am setting up single minute crons to the crontab via a bash script for a load testing purpose. There is no issue with the script executing and the crons are added up and i can monitor crons are ...
1
vote
0answers
98 views

Windows Task Scheduler claims successful execution despite return code of -1 (0xffffffff, 4294967295)

Having a very strange case here, where a windows task scheduler job executes a C# console application at a specific time, that returns -1 in case of an error. The job is configured to rerun itself if ...
5
votes
1answer
222 views

Task Scheduler - Task Idle Conditions

Again me with the Task Scheduler. Microsoft - Task Idle Conditions Under Windows 7, tasks behave according to the rules stated in the link ... tested and it works. Under Windows 10 (Pro v1809 with ...
2
votes
3answers
26 views

Windows Task Scheduler to click link in access form

I have a label on an Access form. This is a clickable label which will then run an event procedure. This event extracts data and puts it into an excel sheet. A Client has asked for this to be an ...
1
vote
1answer
22 views

Task under SYSTEM won't run Win Srv 2k8R2

My company has a software that updates our installers on clients' servers. During the setup, a environment variable is created along with a task with the following lines: Variable: setx ccloud "C:\...
2
votes
0answers
34 views

Task Schedule not executing at “Startup” when created through GPO Preferences

I've noticed if I create the Task for all my PC's on my DC through GPO Preferences with the "At startup" trigger (no matter what I execute, it can be VBS, EXE, PowerShell ...), Task will never execute....
0
votes
0answers
566 views

Migrated Task on Server 2016 Task Scheduler rejected because of missed task start

this question maybe is connected too (Windows Server 2016 scheduled task schedule must be in future) but the issue is still there at our side... We too migrated from Server 2012 R2 to a new Server ...
1
vote
0answers
32 views

Creating a schedule task and runas domain user, “runas” is not selectable

I have a Windows 2016 domain controller. When I try to create a schedule task in group policy, the Run as box is not checkable: Any ideas?
0
votes
0answers
8 views

Something's issuing CTRL_CLOSE_EVENTS but no one is logged in

We're running an Azure server, Windows Server 2012R2. Just of late we've been seeing various scheduled console applications going down because they've received CTRL_CLOSE events. However, no one has ...
1
vote
1answer
161 views

Unable to see Scheduled Task even with access rights to SYSTEM32\Tasks

I have a follow-up question to this. I have a task folder RPA with two tasks as follows: I created these two tasks myself using the Task Scheduler UI (as in above image). My trouble is I am now ...
0
votes
0answers
304 views

Scheduled Tasks Triggering When Not Scheduled

Server environment: Windows Server 2012 R2 Hello, I've been experiencing a strange issue on one of the servers I administrate and was hoping someone could point me in the direction of some answers. ...
1
vote
1answer
71 views

If two scheduled tasks are missed, in which order will they run next?

Let's assume we have two scheduled tasks, both with the option Run task as soon as possible after a scheduled start is missed toggled on. These tasks are conflicting. In this case, one of them turns ...
1
vote
1answer
581 views

Scheduling task on windows server 2016 using group managed service account failing

I have created a new group managed service account in AD and added two servers to access the account. I am able to use the account in services.msc. It is accepting it there but when I am trying to ...
2
votes
1answer
50 views

Is it possible to set a scheduled tasks to run both directly before and directly after a windows update?

We're currently attempting to find a solution to better automate our Windows updates on our IIS machines. We have an infrastructure that is hit by thousands of transactions at all hours of the day; ...
2
votes
1answer
524 views

Almost All Scheduled Tasks Fail: The system cannot find the file specified. (0x80070002)

In Windows 7 x64 I am attempting to create a scheduled task that runs a PowerShell script, but no matter what I try, it fails with the error: "The system cannot find the file specified." And then I ...
1
vote
1answer
706 views

What is the best way to run cronjob in AWS ECS?

I have a web app powered by Laravel that is set up on AWS ECS. I would need to run an artisan command as a cronjob. I'm looking at "Scheduled Tasks" in ECS Cluster configuration. I can launch new ...
1
vote
0answers
72 views

Task scheduler update log location

we had batch job running at task scheduler, Recently Someone had change Event Log Size to "do not overwrite event" at TaskScheduler/Operational this setting got the any log??
0
votes
0answers
665 views

Phantom task: “The task is currently running” (0x41301) Server 2008r2

I have a task that reports "The task is currently running" (0x41301) in Task Scheduler. I can right click on the task and select "End" and nothing changes. The status remains "The task is currently ...
3
votes
1answer
502 views

Data Collector Set was not found (0x80300002) on Scheduled Task

Server: Microsoft Windows 2012 R2 (w/ SharePoint 2013 on the system). Getting the this error: Data Collector Set was not found (0x80300002) I have a scheduled task that runs automatically on system ...
0
votes
1answer
91 views

Powershell script won't restart on failure

I'm running windows 10 pro. I have a powershell script that starts every day at midnight and runs all day. It's controlled by the Task Scheduler. The script itself works fine and in the event of an ...
3
votes
0answers
39 views

Defining multiple triggers for my Task Scheduler will only work on the first trigger

I have "Windows server 2008 R2 standard" with SP1. and inside my windows Task Scheduler, i define the following 2 triggers:- now as the picture is mentioning, i want to run the task on different ...
3
votes
1answer
239 views

Server 2016 Scheduled Task fails on specific hardware model with error 0x8007052e

I've got a strange problem relating to basic Windows Scheduled tasks that has baffled me for a few weeks now. These jobs fail to run on some servers, but work on others which are running on different ...
3
votes
1answer
587 views

Execute a Windows task triggered by registry changes

I'm looking for a possibility to execute a script in case a particular registry key is going to be created or modified. In the Windows Taks Scheduler there is a way to execute scripts triggered by ...
1
vote
0answers
418 views

How to create a scheduled task to run on system startup(without user logging in) in Windows server 2016 azure vm

I have a windows server 2016 server in Azure which is mainly used for running a few scripts. I want to create a schedule where a script should run at the system startup(around 3-5 mins delay is also ...
0
votes
1answer
268 views

How can I enable, scan, and disable windows defender from inside a scheduled task?

If windows defender is disabled can you later (through a script) enable, run a scan and then disable it via a powershell script that is invoked as part of the scheduler? If this is possible then ...
1
vote
1answer
364 views

PowerShell script on Scheduled Task sends email on some servers but not others

hopefully somebody can help me fathom this as it's doing my head in a little! [I'm new, so please be gentle :) ] I recently set up a PS script to run by Windows Scheduled Task at startup, via batch ...
0
votes
1answer
173 views

Scheduled powershell to replace batch file ends too soon or never ends [closed]

First I'll explain the context, because maybe I'm not doing it in the right way. We have an ERP developed using Oracle Forms 6i (yes, is really old). It has forms and reports. Reports have such ...
1
vote
1answer
275 views

Execute a scheduled task on one (and only one) domain controller

I am setting up an Active Directory domain. It includes some Linux servers that use sssd to access the users and groups of the domain. Because the users and groups need a UID and GID for that (I don'...
1
vote
2answers
837 views

Can you edit the *conditions* of a scheduled task via CMD?

I know you can create and edit the actions and triggers of a scheduled task via CMD, but when I open the created task in Task Scheduler all of the Conditions are set to their default configurations. I'...
1
vote
0answers
89 views

Cygwin ssh with keys error - A specified logon session does not exist

Update: The issue is only on Windows server 2008 R2. I created a Windows server 2012 R2 VM and it works fine. I want to run some windows query through ssh, but this is a interesting issue which I'm ...
0
votes
1answer
370 views

Why is (notepad.exe) scheduled task running as SYSTEM process, but not displayed in the GUI?

I have created the following scheduled task using an Administrator cmd.exe: schtasks /CREATE /RU SYSTEM /SC ONLOGON /TN SYSTEM_notepad /TR C:\Windows\System32\notepad.exe The scheduled task runs ...
0
votes
0answers
753 views

How to fix “ERROR: User credentials are not allowed on the local machine.” when creating a scheduled task with Administrator credentials?

Using a non-Administrator (or Administrator) cmd.exe, I enter the following command to create a scheduled task with Administrator credentials admin and P@ssw0rd: schtasks /CREATE /S %computername% /U ...
3
votes
2answers
127 views

How to run a script on a server 1 minute after a commit has been made?

Apart from creating a 2nd script which would check the time of the last commit and then run the main script and which would be too complex of a solution, is there a simpler one?
0
votes
1answer
453 views

Save scheduled tasks with powershell

I want to save my scheduled tasks using powershell. I tried this: $taskpath = "\mytasks\" # all of my tasks are in this folder in Task Scheduler $savefolder = "C:\tasks" # where I want to save ...
1
vote
1answer
2k views

PowerShell script running from scheduled task: action failed to start, directory name invalid

I have a Windows Server 2012 R2 server running a scheduled task with three actions, each running PowerShell scripts: Each of these actions "starts in" the relevant (and correct) directory: ...
0
votes
2answers
36 views

schedule backup job runs up to 9 hrs without errors

I'm very new to administration job... I have SQL server 2012, on that my senior scheduled a job for schedule backup. But, recently I noticed, after 8-May-2018(up to 26-May-2018) the backup files are ...
2
votes
0answers
53 views

When creating new basic task Windows scheduler getting stuck

I have Windows SBS 2011 server with one secondary Windows 2003 domain controller, no other problems found, but when I try to create new basic task on the SBS, all works well till pressing the Finish ...
1
vote
1answer
44 views

Windows task fails but throws no errors and writes no output

This creates a task that works and writes to a file: schtasks --% /create /tn "test" /sc minute /mo 10 /ru SYSTEM /tr "powershell get-date | out-file -Encoding:ascii c:\log.log" This does not create ...
0
votes
0answers
65 views

AWS serverless setup for recurring tasks?

I have a database consisting of many items. At least one time per day I want to loop through all items in this database and for each item, call an external API to fetch current data about this item ...