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

learn more… | top users | synonyms (1)

0
votes
1answer
1k views

Server 2008 issue running batch file

For the life of me, I can't seem to get a batch file running in Server 2008 Task Scheduler, despite it not having the common problems I've seen before. Problem so far: I have a batch file that ...
2
votes
1answer
988 views

Scheduled task does not run on WIndows 2003 server on VMWare unattened, runs fine otherwise

Scheduled task does not run on Windows 2003 server on VMWare. The same setup runs fine on standalone server. Test below explains the problem. We really need to run a more complex bat file, but ...
2
votes
1answer
1k views

Windows Server 2008 Scheduled Tasks not running - 0x80041323 - Reduce Number of tasks running in the specified context?

I am getting the following problem on a number of windows 2008 servers. 0x80041323 Task Scheduler failed to start task \Reporting" in TaskEngine "S-1-5-18:NT AUTHORITY\System:Service:" for ...
8
votes
3answers
20k views

Schedule Windows Task every minute

I need to schedule a Windows task to run a script every minute. In most cases, the script doesn't need to execute anything and exists immediately. When the script needs to execute something, I want it ...
1
vote
0answers
31 views

Windows user privileges when running scheduled task

I posted a question a while ago about allowing a specific user to start/stop Windows services. Provide a user with service start/stop permissions I decided to revisit the issue. I have no idea what ...
1
vote
2answers
87 views

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\ ...
0
votes
0answers
44 views

Batch/Powershell file wont run via Task Scheduler during logoff

I'm having trouble getting my Powershell file to run from Task Schedule during logoff. In short, I'm trying to upload my NTUSER.DAT (roaming profile) to my profiles folder on the file server. Dynamic ...
1
vote
0answers
24 views

Does anyone have a Windows “at /every:” example to explain how to setup a batch file to run the first sunday of every month? [migrated]

This is the one I have to run first day of the month, but I need to run it the first sunday of every month. at 13:00 /every:1 D:\DBMaintenance\MySc.bat Thanks
2
votes
3answers
2k views

Server 2012 R2 Run Program from Task Scheduler not running program

I have a scheduled task that I am trying to run a program (a DB backup program). For reasons unknown I am unable to actually get the program to run, even though the task log says everything was run ...
2
votes
1answer
5k views

Can I schedule a windows task to run in an interactive desktop session?

I'm trying to create a scheduled task that will run once daily on a dedicated machine. The task will run an exe. That exe does a bunch of things, including running automation that manipulates the ...
2
votes
2answers
4k views

Why is Windows Task Scheduler trying to launch multiple instances?

We have a number of Windows Scheduled tasks that run on one Server 2008 Webserver (not R2) which is in a cluster. We recently moved from an original webserver Cluster to a new webserver Cluser ...
4
votes
3answers
2k views

How can I disable a scheduled task using Powershell?

I have a web application that runs on Windows Server 2008 R2, which has a large number of scheduled tasks which take care of all the backend stuff. When I do a software deployment which touches the ...
1
vote
2answers
1k views

.cmd in Windows Server 2008 task scheduler w/o highest privileges

Is it possible to run CMD script in task scheduler as a particular user without checkin option "Run with highest privileges"? Simple test: Create D:\Admin\Scripts\TestScripts\testscript.cmd ...
6
votes
5answers
7k views

How can I schedule a server restart from command line on Windows 2012?

I would like to schedule a one-time server restart, e.g. to finish installing updates early in the morning. How can I do this from the command line on Windows 2012? On Windows 2008, I would have used ...
2
votes
2answers
5k views

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 ...
0
votes
2answers
82 views

Creating Scheduled Task from Group Policy. Can't write to network share?

I am using NinitePro and group policy to deploy and update software on our small network of 150 Win 7 and WinXP machines. I am roughly following these instructions: ...
1
vote
1answer
27 views

Store scheduled tasks in user profile

We are currently creating two remote desktop farms for our users. One farm is for operations staff, and one is for accounts. In both cases, we are using Server 2012 R2 remote desktop deployments with ...
0
votes
0answers
54 views

Server 2012 scheduled task for SharePoint 2013 backup

I have Windows Server 2012 with SharePoint 2013 setup. I created a PShell script and saved it to a ps1 which backs up the Farm: Add-PsSnapin Microsoft.SharePoint.Powershell Backup-SPFarm -Directory ...
47
votes
4answers
17k views

How do I rename a task in Task Scheduled on Windows Server 2008 R2

I have some tasks in the Task Scheduler on Windows 2008 R2. I created them as the admin and I'm logged in as the admin. I have no easy way to rename the tasks. The only way I can is to export the task ...
0
votes
0answers
45 views

Scheduled task timed out and terminated before reaching its run time limit

I have a scheduled task running on a Windows 7 server (not a server OS, I know, but the only function of this box is to run that single task). The task is terminated at the next scheduled run time ...
2
votes
1answer
82 views

Using Windows Server, how do I schedule an hourly task that will call a URL WITH an authorization header?

I need to schedule a task that will call a given url hourly. The URL doesn't return anything so it is fairly simple HOWEVER this URL requires an authorization header: Authorization: Basic {SOME AUTH ...
2
votes
2answers
334 views

Windows server 2012 scheduled tasks run using default profile ( when ran session less ) even if specific account is specified

As pointed in http://social.technet.microsoft.com/Forums/windowsserver/en-US/5e6dc56d-9069-42e3-a7e3-87437cf8ed81/scheduled-tasks-run-in-the-default-user-profile ( No answer from microsoft yet ) I'm ...
0
votes
0answers
37 views

Scheduled Task running longer than expected

From further investigation I have found there is an exact issue on how long certain instances of the task run for. most successfully run in a few seconds, yet a few consecutive tasks are running up to ...
0
votes
1answer
132 views

Console application scheduled task not exiting some times on Windows Server 2008 R2

I have a C# console application as a Scheduled Task on Windows Server 2008 R2. The application is scheduled in Windows Task scheduler to run after every 15 minutes. At the end of the application I ...
4
votes
3answers
14k views

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 ...
5
votes
2answers
4k views

What causes scheduled task error 2147942402?

Server 2008 R2 (fully patched) I'm trying to run a scheduled task to move a specify type of files from C:\Windows\Temp to E:\Foo_blah_blah_blah_blah\Foo2 and for some reason am getting the following ...
9
votes
5answers
978 views

Program does not run properly as Scheduled Task

Situation I have a batch script that prepares some files, executes a program (.exe) and then deletes said files. This task should run hourly, so I'm trying to configure this using Scheduled Tasks. ...
0
votes
0answers
54 views

Running Defrag Task Against Servers

I have a PowerShell script as follows: $ListOfServers = "Server1", "Server2" $RunDefrag = { param($Server) $Volume = Get-WmiObject -Class Win32_Volume -ComputerName $Server -Filter ...
5
votes
2answers
2k views

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 ...
0
votes
1answer
21 views

How to change task's priority?

How to change task's priority in Windows Server 2003 Scheduled task? I see it's possible in Windows Server 2008 and R2. I'm wondering if it's possible in Server 2003 too? In 2008 it's possible ...
6
votes
5answers
4k views

Query schtasks using Powershell

On a Windows7 machine I am trying I can run a query to view all the scheduled tasks using schtasks.exe This is fine but I would also like to filter the result set using something like schtasks ...
-3
votes
1answer
40 views

Create task on windows server [closed]

I need to create a task to download a file from a website that is gzipped and then ungzip it and copy it to various folders on the server. I don't really know what is the best approach to achieve ...
0
votes
1answer
93 views

Windows Server 2012 Run Service On Startup Unsuccessful

I have an EC2 instance with Windows Server 2012 R2 with all the latest updates. I made a service at first, and then a task to run a batch file to create a Microsoft Word report (using my custom C# ...
-1
votes
3answers
64 views

Can't create new task with schtasks… Why?

I have a new Windows Server 2008 R2 host with a strange (?) behavior. I try to schedule a new task into Task Scheduler. I'm using a user that's part of administrators group. If I do it from the ...
-3
votes
2answers
41 views

Scheduled Task Naming Conventions? [closed]

I would like to hear of examples of a naming convention for Scheduled Tasks in Windows, along with rationale. Thanks.
0
votes
0answers
120 views

How to send email when SPECIFIC scheduled task fails to run or returns with an error code

I have a backup script (Powershell 1.0) that is executed every night by the Task Scheduler on my Windows 2008 box. If that script should fail to start, e.g. because the script has been moved or ...
0
votes
1answer
42 views

How to enable or disable a ClusteredScheduledTask in Powershell 4.0

Reference to this page: http://technet.microsoft.com/en-us/library/jj649815.aspx I'm finding ClusteredScheduledTasks a bit daunting to handle without a GUI interface. For example, they have a ...
1
vote
1answer
629 views

Scheduled Task fails to start due to network connection condition even when connection is available

I have a scheduled task with a condition set to "Start only if the following network connection is available". I've selected my VPN connection. However, even when my VPN is connected the task will ...
1
vote
3answers
350 views

Powershell - Set-ClusteredScheduledTask - Error “Incorrect function.”

I'm experimenting with Powershell to add a ClusteredScheduledTask on a clustered server (Win 2012/R2) Technet sample code gives error: #canned exampled from ...
0
votes
1answer
1k views

Strange behavior from Invoke-WebRequest in scheduled task

I'm running a PowerShell script that posts data to an internal webserver over HTTPS. The SSL certificate is not valid. I'm using [System.Net.ServicePointManager]::ServerCertificateValidationCallback ...
0
votes
1answer
125 views

:Powershell Register-ClusteredScheduledTask from XML

I'd like to take my tasks on a non-clustered server, and import them as clustered tasks on a new cluster that has been built and tested. Here's what I have tried: cls ...
5
votes
7answers
18k views

unable to schedule a task (access denied)

i have a bat file im trying to schedule every morning. whilst in the Scheduled Task Wizard... when i click on finish... i get a ... The new task could not be created. The specific error is: ...
-1
votes
1answer
39 views

Child process runs in normal priority only. Why? [closed]

I run a scheduled task in Windows Server 2008 R2. I used the technique described here to set its priority to high priority (level 1 of 7). My task runs a process (an EXE file) that creates child ...
0
votes
0answers
35 views

Windows Task Scheduler skips a scheduled interval

We use Windows Task Scheduler on Win2008/R2 to run a small Powershell job every 15 minutes. It creates a small XML file which triggers a BizTalk process to run, so it typically takes under 1 second ...
82
votes
8answers
139k views

Run a .bat file in a scheduled task without a window

I have a scheduled task that starts a batch script that runs robocopy every hour. Every time it runs a window pops up on the desktop with robocopy's output, which I don't really want to see. I ...
1
vote
2answers
2k views

Scheduled Task has finished but still shows status as running

I have a scheduled task on a Windows Server 2000 box which is scheduled to run daily. On Monday, the task ran perfectly in that the thing it fires off (a console application) completed, but the ...
1
vote
3answers
1k views

Ok to edit task's xml file in c:\windows\system32\Tasks?

I wrote a PowerShell script that check the executable in the < action > tag for each task in the Task directory and mark the < enabled >TRUEorFALSE< / enabled > tag as false/true depending on ...
0
votes
0answers
91 views

Getting the `The application failed to initialize properly`/3221225794 error executing a batch file

There is a scheduled task that is attached to a custom event in the EventLog, it executes the lines below: reconnect.cmd c:\windows\system32\rasphone -f "phone_book.pbk" -d "vpn_connection" ...
0
votes
0answers
52 views

task cannot be completed because of VPN 809 error

The setup: Windows server 2008 R2; L2TP VPN connection is configured; ports for L2TP are opened on the firewall. To (re)connect the vpn connection the task manager gets utilized. I've created a ...
1
vote
3answers
511 views

pass paramter to Schtasks

how can i run schtasks from command line such that i can pass in parameters during run time. i have a batch job which expects parameters during run-time that is created in scheduled task. i cannot ...