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
0
votes
0answers
18 views

Scheduled tasks on Server 2019 don't work when user is not signoed on

I have about 30 VB Apps that are humming along on a Windows 2008 server using scheduled tasks. They all do a variety of simple to complex tasks from pulling data and merging letters on a monthly ...
0
votes
0answers
28 views

Hung Scheduled Task

I have a specific scheduled task (one of several) that runs on a Server 2019 server. This scheduled task runs a Windows PowerShell script that interacts with a couple of REST APIs and logs to a file. ...
2
votes
1answer
254 views

Windows 10 Scheduled Task does not use domain credentials to access network resources

I have a simple task, which for the purposes of testing, consists of a batch file with two lines: whoami >result1.txt copy \\server\share\test1.txt C:\Users\xxx\Documents > output.txt 2> ...
1
vote
0answers
37 views

Scheduled task on VM only works interactively/manually

I am trying to get a scheduled task to run on a Windows Server 2012 R2 virtual machine. When I RDP in and test the task, everything works manually. The task is scheduled to run nightly and it appears ...
0
votes
0answers
19 views

Server 2019 - Task Scheduler tasks stop running

I have a set of about 5 tasks that have been running correctly for over a month on a 1 minute and 5-minute basis. Today at 4 pm, they stopped running, all of them, for no apparent reason. I can ...
0
votes
1answer
42 views

New-ScheduledTaskTrigger using variable for -DaysofWeek

I'm writing a script that takes the user's input to then Register-ClusteredScheduledTask I'm trying to use a string for the -DaysOfWeek, but am only receiving various errors... New-...
0
votes
0answers
51 views

Best Practice to Apply Windows Updates to the Web Servers Behind a Load Balancer?

I have started managing 4 Windows 2012 R2 web servers which are behind a Citrix NetScaler Load Balancer. These servers have IIS and we use app_offline scheduled tasks to take the web application ...
0
votes
0answers
36 views

How can I run a scheduled task on domain controller whenever a domain user logs into the domain?

I need to log domain user logins & logouts to an Oracle database. Not all computers have Oracle drivers, but one of the domain controllers does. So I have created a script which writes the ...
0
votes
0answers
20 views

Windows Task Scheduler issue

Server: Windows Server 2012 R2. Schedule: 7pm on Wednesdays every week. The scheduled task has been running for few weeks without any issues. It is supposed to run this Wednesday 3/11 but ran on 3/10 ...
1
vote
1answer
432 views

Windows 10 run an interactive scheduled task to run for any interactive user

I want to setup a windows 10 task scheduler to run a GUI based tasked interactively for any logged on user. Right now we have to explicitly specify the user name, so the task can only be run for this ...
0
votes
0answers
64 views

Windows Update killed server reboot batch job. Is there a replacement?

I have been creating a scheduled task with powershell to use a group managed service account (the only kind allowed) on Window Server 2016. Did this approximately one year ago on 5 2016 VM's, and it's ...
0
votes
0answers
25 views

Windows (2016) Task Scheduler does not always fire repeated triggers

I have a pair of scheduled tasks that start at 6:00 and 6:03 respectively each day and repeat every 15 minutes for 18 hours. This has worked on one (2008R2) server for years, but that server is ...
0
votes
1answer
207 views

Task Scheduler failed … Error Value 2147942402

I tried to schedule a task by schtasks /create /tn Test /sc minute /mo 1 /tr "del /f \"%UserProfile%\path\file\"" ...however the Scheduler always ends up with the following type of error: Task ...
0
votes
0answers
37 views

What is the suggested I/O scheduler to improve disk performance on HDFS file-system

What is the recommended I/O scheduler for HDFS file-system we have hadoop cluster with datanodes machines and we want to know the right configuration for I/O scheduler I/O scheduling in Linux ...
0
votes
0answers
40 views

Is it possible to prioritize writing over reading in disks?

We have a hadoop cluster, with data-node machines that use the HDFS file-system. We want to prioritize writing to disks over reading from disks. we have read the - Using the Deadline IO Scheduler ( ...
0
votes
0answers
236 views

Creating scheduled task from powershell using xml

I was able to export all of my scheduled tasks using: All i need to be able to do is import the scheduled task from the xml file I have about 100 of these so any help would be appreciated. $...
0
votes
0answers
115 views

Windows 2019 Task Scheduler Doesn't Execute Powershell Script at Scheduled Time

I have a PowerShell script that can be run via the command-line properly. So I'd like to make it run regularly. I create a task scheduler and set as followings: The problem now is the Task Scheduler ...
1
vote
0answers
77 views

How do I create a scheduled task to empty all domain users' Recycle Bin on the first of every month?

As the title suggests, I would like to empty users recycle bin on the first of every month. This is what I have so far. I would like more of a proof read to know if I am going about this the right way,...
0
votes
1answer
48 views

Stopping powershell background jobs at a scheduled time?

I started a few powershell jobs and I want to stop them at a scheduled time. I know the command to stop them is Stop-Job -Name $someName but I don't know how I can schedule this. I mean I realize ...
0
votes
1answer
226 views

Scheduled task runs twice after DST

We have a process in Task Scheduler that runs at 8:10am on certain days of the month. This has worked fine for years. We u/ged to Server 2019. Then, after this year's DST switch over and server ...
1
vote
1answer
38 views

Schtasks delete userprofile

I have two scripts, One of them in batch for a weekly task schedule task_del_user.cmd SCHTASKS /Create /SC weekly /D MON,TUE,WED,THU,FRI /TN MyDailyDelete /ST 15:00:00 /TR "Powershell -...
1
vote
1answer
72 views

Use systemd-run to schedule command after reboot

I need to schedule a command to run at a certain time in the future. systemd-run with the --on-calendar option seems like it can do that, except that it seems the service is only stored ephemerally ...
0
votes
1answer
46 views

How to put monitors into standby mode during certain hours using Group Policy

Just a normal Windows Server 2008 R2 and Windows 7/10 office environment with about 35 clients. I would like to implement a domain-wide power plan for our office computers to put their monitors in ...
0
votes
0answers
158 views

Task Scheduler runs a console application in the wrong way

I have configured a task to be run in Task Scheduler. That task is a console application. I configured action to be "c:\path\app.exe >> c:\path\logs\output.log". When I manually run the task from ...
0
votes
0answers
8 views

Schedule Task to run 2 Days before another task

I have two tasks, one starts a PowerShell scripts and installs Windows Updates on all our Servers. This one is set up to run each third saturday of each month. The other task starts a PowerShell ...
0
votes
0answers
156 views

Scheduled task returns error 0xff but success

I have a scheduled task that runs a batch file, and even though I can see the results of it completing successfully, according to the task scheduler it fails with error 0xff, every time. title ...
0
votes
0answers
91 views

Scheduled tasks re-runs as missed their scheduled time even they were run and completed successfully at their startup time

We use Windows Server 2016 Task Scheduler to start periodic tasks. All our tasks has the [x] Run task as soon as possible after a scheduled start is missed setting enabled. The tasks are occasionally ...
0
votes
1answer
64 views

Do Azure logic apps wait for completion before firing again?

We have an Azure logic app that fires every 60 seconds. It fetches a URL. Typically this would only take < 1s, but sometimes if there's a lot of work to do on the other end it can be higher. ...
0
votes
1answer
41 views

How to keep a local folder’s contents synchronized with a network share? (Windows)

I would like to have a local folder on all of my domain connected computers kept in sync with a share on one of my servers. Only Domain Admins and the SYSTEM account should have Modify permissions to ...
1
vote
1answer
319 views

Running scheduled task on remote server

We have 3 scheduled tasks that run on a server. Randomly someone in HR will ask us to run one of these tasks for them out of schedule. To make this easier and more expedient for the HR folks, i'm ...
1
vote
1answer
986 views

Windows Server 2019 scheduled tasks must be in future

As a follow on to the Windows Server 016 scheduled task must be in future, can anyone confirm if the same quirk exists in Windows Server 2019? When I was tidying up the Task Scheduler Library with ...
0
votes
0answers
16 views

How to get a Batch Job session to push a zipped file from a remote server to a local machine/server

I have a program that our clients run as a RemoteApp. This program copies files out of a folder to another folder, then zips those files and downloads/copies them off the remote server to the client's ...
1
vote
1answer
610 views

Host ssh-rsa key is refused by WinSCP when connecting on scheduled task, but not when launched manually

As part of a scheduled task that runs on a Windows Server 2012 machine, I use WinSCP to connect via sFTP using credentials and ssh-rsa key. When the scheduled task runs, the connection fails with the ...
1
vote
2answers
329 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 ...
3
votes
1answer
458 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
18 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
65 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
43 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
61 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
353 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
29 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
69 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
134 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
49 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
348 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
910 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
925 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
93 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
25 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
112 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....

1
2 3 4 5
13