Questions tagged [scheduled-task]

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

662 questions
0
votes
0 answers

Scheduled Task (powershell script) causes 'audit failure' SeTcbPrivilege error in Event Viewer

On Windows Server 2012, I'm trying to create a Scheduled Task, that runs as a Domain user, that copies a file from a different server to the local server, then deletes the file locally if the date modified is older than 30 minutes. The powershell…
mindmischief
  • 172
  • 2
  • 2
  • 9
0
votes
2 answers

Best way to schedule a task that is be excuted years later

What is the best way to schedule a task that is be executed years later? Like execute a script after 4 years. Is cron the best method for that?
nitins
  • 2,579
  • 15
  • 44
  • 68
0
votes
1 answer

Why is my SSIS configuration update not being saved?

I asked this over on SO with little success. I was wondering if any SF folks had some insight... I have a SSIS 2005 package that is up and running in our production environment. The package uses an SMTP Connection Manager to send an e-mail message…
Dillie-O
  • 521
  • 8
  • 15
0
votes
2 answers

How to run a VBA macro from the Task Scheduler in Windows Server 2016?

I have a VBA macro for extracting some data daily. The Macro doesn't have any interactive component like a Message Box, Custom Inputs, or Input Box. It doesn't expect any user input, it only downloads some data from a DB and generates some CSVs. My…
0
votes
0 answers

Powershell PSDrive Not working under Scheduled Task

I am trying to move files from a DMZ server to a domain server via powershell I can get it to work from an interactive session however if I try to run it under a scheduled task the copy fails. I added transcript start command to try and see what…
0
votes
1 answer

Windows Scheduler: Task Start Failed

I'm trying to learn about task scheduling in Windows 10, so I set myself the task of trying to schedule a script that writes a blank file called test.txt to the user's home directory. I did this by creating a task that executes Out-File -FilePath…
quant
  • 111
  • 5
0
votes
1 answer

Scheduled Tasks - Win 2003 - Issues and further explanation of MS/KB

Thsi page: http://support.microsoft.com/kb/308558 claims the following: Note Administrators or users with administrator permissions can configure the Task Scheduler to send a notification when a scheduled task does not run as you set it to…
NealWalters
  • 1,333
  • 8
  • 19
  • 39
0
votes
0 answers

In Windows Server 2016 is there a way to run a scheduled task, via windows script, as an admin, using credentials incl. pwd?

Ok first, yes, I know this will be looked at as a security risk. The plan is to code this into an .exe; the pwd changes annually so there is very little hassle in changing the source code and re-compiling. And this will not be .Net where it can be…
jimo3
  • 101
  • 1
0
votes
1 answer

Scheduled tasks on Server 2019 don't work when user is not signed 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 basis, posting data on our website, converting data…
0
votes
0 answers

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. I have logged into the server as the user…
StackExchangeGuy
  • 131
  • 1
  • 12
0
votes
0 answers

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 trigger them manually, and they'll run to…
Alex T
  • 101
  • 1
0
votes
0 answers

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 information when a person logs in to a folder on the domain…
0
votes
0 answers

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 worked flawlessly, with each one set to reboot…
0
votes
0 answers

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 retiring being replaced by a 2016 server. I exported…
JefferMC
  • 111
  • 4
0
votes
1 answer

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 Scheduler failed to launch action "del" in instance …