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)

93
votes
9answers
163k 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 ...
12
votes
4answers
777 views

How to schedule server jobs more intelligently than with cron?

I run a job every minute to reindex my site's content. Today, the search engine died, and when I logged in there were hundreds of orphan processes that had been started by cron. Is there another ...
7
votes
5answers
16k views

Is it possible for a Scheduled Task to run as NETWORK SERVICE?

It is quite simple to set up a task to run as a SYSTEM, but when setting it to NETWORK SERVICE it show "Access is denied" error message. Is there any way to get this working? (The problem is that I ...
4
votes
2answers
2k views

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

Scheduled Tasks w/ GUI issue

Are there issues running Scheduled Tasks in Windows 2003 when the task has a GUI? I have one that worked fine in Windows 2000 but won't run on Windows 2003. Details: I have a .bat job that ran every ...
5
votes
7answers
22k 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
vote
4answers
4k views

Why isn't my Scheduled Task running a batch script?

OS: Windows 2003 Server Setup: The batch file basically uses 7zip to zip up a few files into a location ready for uploading into an offsite location via FTP. I have run the batch file as myself and ...
0
votes
2answers
2k views

PowerShell script works from command line, not from Task Scheduler. Why?

My PowerShell script works from the command line, but not from Task_Scheduler. This is PowerShell v1 on Windows Server 2008 R2 Enterprise. From the command line, I type: c:\> powershell -File ...
0
votes
3answers
2k views

Why can't I create a scheduled task using a domain account?

I don't recall running into this problem before, but I've hit a brick wall today. I'm trying to create a scheduled task, and I'm using credentials for my domain account, which is also an ...
13
votes
5answers
13k views

Process runs slower as a scheduled task than it does interactively

I have a scheduled task which is very CPU- and IO-intensive, and takes about four hours to run (building source code, if you're curious). The task is a Powershell script which spawns various ...
12
votes
4answers
15k views

How do I schedule a reboot on Linux?

I'd like to be able to schedule a server reboot at a specific time, but not regularly. How can I do this without futzing with adding and removing cron entries?
4
votes
5answers
10k views

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 ...
3
votes
2answers
6k views

Task scheduler does not kill task

We have a scheduled task that sometimes hangs. It just stops responding. On Windows 2003, we had task scheduler configured to kill the task after 3 hours. It's a 32-bit process. On Windows 2008 ...
2
votes
1answer
18k views

Rebooting Server 2008 R2 with Task Scheduler?

I've been trying to get Server 2008 R2 to reboot after everyone is gone from work, to get its updates installed, but what I've been trying apparently isn't working. I have a "reboot.bat" in C:/ that ...
0
votes
2answers
7k views

Compress files to daily/weekly/monthly archives with Windows scheduled tasks

For EDI files which need to be archived, I would like to use a compression uitility (like 7Zip) which collects and compresses files based on their file date. For example, a weekly archive ...
3
votes
0answers
156 views

How to run a Scheduled Task as NetworkService in Windows Server 2003? [duplicate]

How do i configure a scheduled task to run as NT AUTHORITY\NetworkService in Windows Server 2003? Background Even though the account is known as NetworkService, the full name is NT AUTHORITY\Network ...
3
votes
1answer
3k views

Scheduled task running twice from time to time

A customer of mine is experiencing a very strange problem: a scheduled task is running twice from time to time, with only a few seconds between execution. The task is scheduled using the windows ...
2
votes
2answers
12k views

SCHTASKS can't administer remote tasks

I am trying to stop and then disable a remote task from a build script. The remote server is Server 2k8. The client running the script is Windows 7. Both machines are joined to the domain. When I run ...
2
votes
3answers
12k views

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 ...
1
vote
1answer
194 views

What Event ID is generated when a scheduled task fails in Windows Server 2003?

If a scheduled task fails on Windows Server 2003, is anything written to the event log? And if so, what Event ID does it have so I can set an Event Trigger to look for it, and email me?
1
vote
3answers
710 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 ...
1
vote
0answers
640 views

task scheduler - run interactively as any user with admin credentials

I'm trying to deploy a scheduled task with a GPO. The task is set to run at login and executes a batch file, which then executes an EXE file. However, I also need it to be interactive and run with ...
1
vote
3answers
6k views

Scheduling VMWare ESXi 4.1 VM Restart

We had a virtual machine running on a VMWare Server host on Windows Server 2003. The machine is set up with non persistent disks. We had a windows task schedule set up that ran a batch file to reset ...
1
vote
2answers
1k views

Can I schedule Windows Server Backup using a managed service account?

I've set up a scheduled backup using the Windows Server Backup. Also, I've created a managed service account that should execute the backup, but the Schedule wizard doesn't accept the user account. ...
1
vote
2answers
596 views

windows server 2008 tasks\cmd programs

when I run a task on windows server 2008 I can't see the windows of it. how can I fix it?
1
vote
2answers
2k views

Turn off “isolation mode” in Vista Task Scheduler?

In Windows Vista (and I assume Windows 7) Microsoft has improved the security of processes that are run through the Task Scheduler, namely http://technet.microsoft.com/en-us/appcompat/aa906020.aspx: ...
0
votes
2answers
6k views

When ran as a scheduled task, cannot save an Excel workbook when using Excel.Application COM object in PowerShell

I'm having an issue where I've automated creating an Excel.Application COM object, add some data into a workbook, and then saving the document as an xlsx. This works fine if: I'm already in ...
0
votes
2answers
868 views

cwrsync on Server 2008 R2 as a scheduled task

I have a an rsync(cwrsync) batch file set up to run, backing up several directories daily to a backup server via ssh. I set this batch file to run as a scheduled task, however it does not seem to. ...
0
votes
4answers
937 views

Way to automate an application that requires a graphical login?

I'm faced with a problem: Under Windows Server 2003, I need to automate an application (Sage 100) that doesn't have any automation service of its own. First attempt I found -and was impressed by- ...