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
6
votes
2 answers

Why do weekly tasks created via PowerShell using a different user fail with error 0x41306

We have some scripts that create scheduled jobs using PowerShell as part of our application. When testing them recently, I noticed that some of them always failed immediately, and no output is ever produced (they don't even appear in the Get-Job…
6
votes
1 answer

Scheduled Tasks and Environment Variables

I have a scheduled task, a batch file, that uses an environment variables which is set system-wide. On server 1, the scheduled task runs under a domain account and the environment variable works. The environment variable also exists in my session…
Andrew J. Brehm
  • 1,611
  • 7
  • 37
  • 57
6
votes
3 answers

Is there a way to import a scheduled task from windows 2003 (.job) to windows 2008 (.xml)?

I had some jobs to be moved from the old production server (windows 2003 server standard) to the new machine (windows 2008 server standard), but the new server is unable to read the old .job format, also the import wizard only imports from .xml job…
Rodrigo
  • 203
  • 1
  • 2
  • 8
6
votes
4 answers

Synology cron job not working

I am not sure where to ask this question but I'll ask here first. I've got a Synology DS211 server and I am trying to run cron jobs but it is not working. This is the code I got in the crontab file 10 19 4 * * root /opt/bin/openssh-scp…
zentenk
  • 223
  • 1
  • 5
  • 10
6
votes
3 answers

How can I create a scheduled task from the command line that only runs on demand?

I"m trying to duplicate the steps in this article for creating a shortcut that launches a program without a UAC prompt. I'd like to create the task from the command line, however. Here's the schtasks.exe command I'm using: schtasks /create /tn…
6
votes
4 answers

Error 0xE0434F4D as 'Last Run Result' of a Windows Scheduled Task

Hallo, i get the error 0xE0434F4D as 'Last Run Result' of a Scheduled Task on Windows Server 2008. I have checked the permissions of the user that is running the scheduled task, and the user does have the necessary permissions. So what could be…
user10082
  • 195
  • 3
  • 5
  • 8
6
votes
4 answers

Robocopy failure with Windows Server 2008 Scheduled Task

So I have a batch script for robocopy. Running this from the command line does exactly what I want. robocopy "D:\SQL Backup" \\server1\Backup$\daily /mir /s /copyall /log:\\lmcrfs4g\NavBackup$\robocopyLog.txt /np Then I create a Scheduled Task in…
CC.
  • 1,196
  • 1
  • 10
  • 22
5
votes
1 answer

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 starting the next one. If by default they run…
5
votes
1 answer

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 all the updates) ... well not exactly. First of all…
toofat
  • 311
  • 3
  • 11
5
votes
1 answer

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 tasks following the "Scheduled Tasks (Cron)"…
Sivaji
  • 101
  • 1
  • 5
5
votes
1 answer

GPO not applied, gpresult /R OK -- scheduled task not created

I've made a GPO that make a scheduled task. This scheduled task access to a network share to execute a powershell program that will delete some mails in outlook. Script is OK. It's a User GPO. When i launch a gpupdate /force, scheduled task does…
Alex Lum
  • 145
  • 1
  • 4
  • 16
5
votes
1 answer

Back up a database nightly

Question: Is it possible to automate the process of coping a full database every night into the development database on the same server? Software: Windows Server, SQL, SQL Server Management Studio, ColdFusion Background: I have a development…
Denoteone
  • 151
  • 3
5
votes
1 answer

Scheduled Task not Running on Windows Server 2012

I go to Task Scheduler and drill down to Microsoft Then I click on Create Basic Task and go through the wizard At the last page of the wizard I check "Open the Properties dialog for this task when I click Finish" I click on "Run whether user is…
Glowie
  • 169
  • 3
  • 11
5
votes
1 answer

Scheduled task to run a 32-bit PowerShell Script with three arguments

TLDR Version I need to run a 32-bit PowerShell script that takes three arguments as a scheduled task in Windows Server 2008 R2. The script starts a FileSystemWatcher, so I need to keep it alive so that it can keep picking up new files. You should…
jonnybot
  • 181
  • 1
  • 7
5
votes
3 answers

Task Scheduler: Login to a session at startup and start a desktop app?

ISSUE: I have a Windows 2008 R2 VM that runs a 3rd party ERP system. They have a utility that will run scheduled jobs to backup the Oracle database and their app data nightly with a 7 day rotation. The problem is that it must run as a desktop app…
TheCleaner
  • 32,627
  • 26
  • 132
  • 191