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
5
votes
3 answers

Task Scheduler with Virtual Accounts, possible?

Currently I'm using LOCAL SERVICE as the user account for various regular tasks, and was wondering if it was possible to use a Virtual Account instead. Task Scheduler seems to reject NT SERVICE\ style account names.
5
votes
8 answers

Is the Task Scheduler in Windows XP reliable enough to be trusted with important tasks?

I ask because the software my company is about to start using requires a single (windows) workstation to run a small automation program each night to increment several fields in the database. I'm sure I'm not the only one who thinks this is terrible…
DWilliams
  • 953
  • 2
  • 20
  • 29
5
votes
2 answers

How to email output of scheduled tasks?

On Unix systems, the scheduled task service will email any output that a scheduled task produces. If no output is produced, no email is sent. How can I do the same thing on Windows Server 2003 or 2008? Is there a way to call a batch file or…
Starfish
  • 2,735
  • 25
  • 28
5
votes
2 answers

Permissions for Scheduled Tasks on a Domain Controller

I'm trying to run a Scheduled Task on a 2008 R2 Domain Controller and all was well until I set it into the production environment. I'm running the task as a Domain User that's defined in the "Log on as a batch job" setting. For giggles I also added…
5
votes
2 answers

Is it possible for a Scheduled Task to perform a graphical (interactive) logon or use a script to do the same?

I'd like to have a Scheduled Task (or a script of some sort) perform an automated interactive logon at a given time on Windows Server 2003. The reason is in this question I've asked a short while ago: I need to automate an application but have not…
Renaud Bompuis
  • 519
  • 2
  • 7
  • 15
5
votes
5 answers

Getting alerted when a Windows scheduled task fails

I am looking for a way to get alerted if any of the scheduled tasks on a group of Windows 2003 servers fail (exit with a status code that is not 0). Scripts, commercial applications, and plug-ins to monitoring tools (like Nagios) are all open for…
user10992
5
votes
1 answer

Do not start scheduled task on windows until the previous one is finished

I have a program that is running infinitely, and I have it scheduled to run every 10 minutes. How to make sure that the program will not start in 10 mins, if the previous (10 min old task) task is running? I want only one instance of the scheduled…
user34402
  • 271
  • 1
  • 5
  • 10
5
votes
3 answers

Scheduled Robocopy task fails with 0x10 error

I'm trying to schedule a file-sync between two dedicated servers on a LAN. The remote machine is running Windows Server 2003 and the local machine is running Windows Server 2008. I mounted the remote folder as the J: network drive to overcome any…
5
votes
0 answers

Windows Server sometimes has wrong date

Having a Windows Server 2016 (hosted at Amazon AWS EC2) that is running successfully for years. Since some month I'm experiencing that the Scheduled Tasks (e.g. a task that is configured to run daily) are not being executed. No error message in the…
Uwe Keim
  • 2,420
  • 5
  • 30
  • 47
4
votes
1 answer

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 hardware/VMs platforms. Initially this was a…
4
votes
1 answer

How do I run Register-ScheduledJob from a script running as SYSTEM?

I'm trying to run Register-ScheduledJob from a script executing as SYSTEM (from an external deployment tool), but I get an error. This must be initially invoked as SYSTEM due to the way the deployment tool works. To reproduce this problem (requires…
gregmac
  • 1,579
  • 4
  • 18
  • 27
4
votes
2 answers

windows-server-2016 task scheduler doesn't save domain user to run as properly

The Task Scheduler(TS) isn't saving domain information for run task as user. Steps to replicate: In General->Security Options it shows which user the task will run as with the button "Change User or Group" beside it. The TS lets me change the user…
John Aho
  • 61
  • 1
  • 1
  • 6
4
votes
3 answers

.NET Core console app fails from task scheduler with 0xC0000005

I have written a simple .NET Core console app (which writes some log files, hits a database and sends some emails). Triggering the task by double-clicking on the .exe within Windows works fine. However when attempting to trigger the task through…
4
votes
1 answer

Perform action when no user logged on to Windows Terminal Server

As background for this question: we have a Windows Server 2012 R2 Terminal Server where users do long-running work, so we try very hard not to reboot the server unneccessarily. However, sometimes we need to (installing updates being the most…
4
votes
1 answer

GPO for scheduled tasks not applying to certain servers, no errors in logs

I have two servers out in an OU that are not taking scheduled tasks as specified in the GPO. The same GPO applies correctly to other machines in the same OU with the same permissions, so I don't believe it to be a permissions or routing issue. The…