Task scheduler is a component in Windows that, like the unix cron daemon, allows scripts to be run at defined times.

learn more… | top users | synonyms

2
votes
2answers
9k views

Using Task Scheduler to Run a Task Before Shutdown

As of writing, the only options available are to "Begin the task" On a schedule At logon At startup On idle On an event At task modification/creation On connect to user session On disconnect from ...
0
votes
0answers
22 views

Running Cmd as System User without psexec

Can I run cmd.exe as an interactive prompt without the psexec tool I've tried scheduling it as a task, but it only runs as a background program. (conhost) I verified that by checking the task ...
0
votes
1answer
16 views

Possible to activate a task in task scheduler based on memory usage?

I am trying to set up a task that only runs at a certain level of RAM usage (and then won't run again for a period of time, preferably). Is this possible? If so, how? Thanks.
1
vote
1answer
13 views

Is it possible to change log destination for Task Scheduler?

I'm not sure if this is the right place for me to ask but I was wondering if it is possible to change where Task Scheduler store its logs? I have an .aspx that can read log files from virtual ...
1
vote
2answers
10k views

Why does my scheduled task fail with error (0x4)

I have a scheduled task that is supposed to run a batch file. The batch files runs file when called on it's own, but does not run when wrapped in a scheduled task. Here is what the dialog looks like: ...
0
votes
2answers
3k views

Auto-terminate a Windows application after a given amount of time

I'm looking for a way for a user to launch a Windows application that will only run for a given amount of time, say an hour. After the hour is up, an alert window will pop up, saying "Program will be ...
0
votes
1answer
32 views

Windows task scheduler searching for the wrong file

I have a task that runs a .exe , It is a simple VB program that reads from a txt file, in the code I have this: My.Computer.FileSystem.OpenTextFileReader("test.txt") But when the scheduler runs ...
1
vote
2answers
460 views

How to set up Task Scheduler task that cleans up firefox window it opens?

I have a Task Scheduler Windows 7 task that invokes firefox.exe on a URL which is an iMacro. Upon completion, the firefox window is left open. I always have firefox running, but it brings up a new ...
1
vote
2answers
9k views

Windows scheduled tasks fail with 0x1, don't log errors

I have three Python scripts running overnight as scheduled tasks on a Windows Server 2008 VM. I can run them manually with no problems. But when I look at the Task Scheduler each morning, the first ...
2
votes
1answer
246 views

Running batch file from Task Scheduler in Win7 using QODBC and Quickbooks does not work

I have a batch file (.BAT) set up on a Windows 7 PC running QB Premier 2012 that uses a SQL client to connect to a Quickbooks company file through QODBC (latest version) that works fine when run ad ...
8
votes
5answers
14k views

How can I open a URL on a schedule in the default browser?

I'm looking for a mechanism to open a single URL in the user's current default browser on a schedule/recurring basis. I know that if I was writing .Net code to do this, I could simply do something ...
0
votes
1answer
36 views

Task scheduler Windows 7(schtasks) set Principals RunLevel highest returns Access denied (Run with highest privilege)?

SCHTASKS /Create /TN "New Task" /SC HOURLY /TR blah.exe /RU myusername /RP pypassword /RL HIGHEST Returns {ERROR: Access Denied} Error also used below code in Xml but still getting the same Error ...
0
votes
2answers
71 views

Windows pausing service instead of restarting it when batch file called from task scheduler

I have set up a task in Windows Task Scheduler to run at a specific time each day. The task simply executes a batch file I've created to restart my Windows service. This is the contents of that ...
12
votes
3answers
17k views

Windows 7 Task Scheduler doesn't list my custom task(s)

I created a custom task from another application (Peachtree), but it never showed up in the Active Tasks list. So, I created it manually from within the Task Scheduler, but the task still hasn't ...
2
votes
2answers
6k views

Why can't Excel open a file when run from task scheduler?

I wrote a powershell script that opens an excel workbook and runs a macro. When I run that script from PS console, or even from command line using powershell.exe script.ps1, it jus works. When I set ...
0
votes
0answers
27 views

Task Scheduler Send Mail Fails

I try to send mail as a 'send email' task of Task Scheduler. The task fails and gives the error 202. What is wrong?
0
votes
0answers
43 views

Start program from task-schedule without user logged on

I use the task scheduler to create a daily user-interface task, such as a message-box and a program that is invoked. When the task is set to be invoked only if user is logged in , the task shows up ...
7
votes
2answers
9k views

Creating a scheduled task in Windows that will run at intervals indefinitely

I seem to be getting slightly confused by the Task Scheduler trigger settings. (I'm on Windows Server 2008 Web) I want to create a task that will run every 5 minutes, whether a user is logged in or ...
0
votes
0answers
47 views

Scheduled task doesnt work Windows 8

I have this batch that makes a scheduled task calling to a powershell script and i cant make it run in windows 8. It works perfectly on windows 7 but when i use it in windows 8 it keep stuck. My ...
2
votes
3answers
7k views

Why can't a Task Scheduler job access a mapped network drive?

I have a Task Scheduler job to run Robocopy for backing up local files to a network share. I have to use domain credentials to access the network share but the local computer is not on the domain, and ...
2
votes
2answers
10k views

Remotely managing Scheduled Tasks on another computer: Access Denied

I need to remotely create new scheduled tasks from a Windows 7 computer in my company (which according to this Microsoft TechNet article I should be able to do. ...
1
vote
2answers
267 views

bat file behaves differently when run from windows scheduler

I have a .bat file S:\BACKUP_db\copytofileserver.bat, which takes some files and zip them to the network drive. Its first command is to delete the old backup at specific network path, then pack the ...
0
votes
1answer
58 views

Batch file in windows scheduler

set PATH=C:\Users\... call date2.cmd md %DT_MM%-%DT_DD%-%DT_YYYY% cd %DT_MM%-%DT_DD%-%DT_YYYY% So, I set my path to the folder that has PSFTP for me to run and run a file that will get the current ...
0
votes
0answers
46 views

Craete task to open an URL that integrated windows authentication

I need to run a daily job to open an URL which needs windows authentication so I created a task in windows task scheduler and I did set run task as my own user ABC\abc. But when I run task the login ...
15
votes
3answers
38k views

Make Windows Task Scheduler alert me on fail

I have an automated script that pulls backups from my website to my local computer. Once my server was down, another time i accidentally move my script. How do i make Windows Task Scheduler tell me ...
1
vote
0answers
75 views

Put a Win 7 computer to sleep AND wake it up on schedule

The computer in our bedroom puts on a light show every night around 3 when it starts to update Windows. I'd like to put the PC to sleep at a fixed time and then have it wake up on its own at a later ...
0
votes
1answer
165 views

Trigger an event on Key press in Windows

I need to trigger an event, say open music player with a particular music file, when I press a Key (other than the dedicated play/pause button). How can I do that with taskscheduler (Schtasks.exe) ? ...
3
votes
1answer
642 views

Missed Windows Task runs when the computer starts

hi I have a problem oposite to the usual one. I have a task to hibernate my computer at 8pm If I hibernate the computer earlier, and turn it on next morning, the task runs and hibernates the computer ...
1
vote
0answers
32 views

Change focused window on set interval

On Windows 7, how to do I set it up so that the focused application automatically changes on pre-programmed intervals? I am running a frame grabber application, a web browser, and a photo slideshow. ...
2
votes
1answer
139 views

How to prevent scheduled tasks from running as soon as computer wakes up?

Example: I have a task that is scheduled for 6 am every day (only if I'm logged on). If my computer sleeps/hibernates all night until 9am, upon waking up the task will then run even though it missed ...
2
votes
0answers
204 views

Task Scheduler program writes to literal folder named %LOCALAPPDATA%

I have a .NET executable (that I created) which uses Microsoft's Active Directory Service Interfaces (via System.DirectoryServices.AccountManagement) to do LDAP queries. Internally to ADSI, it ...
1
vote
4answers
3k views

Running powershell script through Windows Task Scheduler

I'm trying to run a simple PS1 powershell script from the Task Scheduler. The task's Actions settings are Program: powershell and Add arguments: -executionpolicy bypass -file ...
3
votes
1answer
1k views

Task scheduler - What is “Wait for idle for”?

I created a new Task in my task scheduler and I wanted it to be running only if the computer is idle for 10 min. but then I saw this checkbox which I don't understand what it does : The help says ...
1
vote
2answers
1k views

Display message box from Task Scheduler on top of all other windows

Is there a nice way to get a message box to pop up at a scheduled time on top of other windows? The default "Display a Message" action uselessly appears below everything else.
2
votes
3answers
5k views

Windows scheduler - Tasks not running when user not logged in

I have Windows Server 2003, with schedules setup via Remote Desktop under one account. That account appears in the 'creator' column too. I have 'Run only if logged on' unticked. When I have logged ...
0
votes
0answers
20 views

Are there two seperated schedulers in major operating systems, one for processes and one for their threads?

Let's assume a process is given the CPU on a single-core CPU system by the scheduler and let's assume this process has 10 threads. Who decides which of the ten threads gets the CPU? In other words, ...
0
votes
0answers
108 views

Task scheduler error

When I open task scheduler in windows 7 it gives an error saying: The selected task "{0}" no longer exists. To see the current tasks click refresh. Then another error comes like this: Task ...
4
votes
1answer
2k views

How to make TaskScheduler fail when the task returns result different from 0

I have a backup task that fails with a non zero result, yet Task Scheduler says that it executed the task correctly. Is there any way to tell Task Scheduler that the task failed?
0
votes
1answer
558 views

How to use Windows Task Scheduler interactively on Windows 7?

I've just made a new task that triggers an application from the command-line. It seems that it's working (I check in log files), however I see no icon just as it used to be if I'd run the application ...
1
vote
1answer
89 views

Windows Task Scheduler

Does anyone know how to set a trigger delay of less than 30 seconds (the lowest option given in drop down menu) for Windows task scheduler? I want a delay of 5 seconds to give another task time to ...
0
votes
0answers
103 views

Run task at logoff and wait until it finishes

I am running a Windows Vista (no gpedit.msc unfortunately) computer and I want to run a backup at logoff. So, when the user tries to shutdown the computer, I want to run a .bat file which executes the ...
0
votes
1answer
88 views

schtasks in Windows how to select first day of month

I have the syntax how to define a Task for the last day of the month, but not fir the first day. Are there any Admin Gurus? schtasks /create /sc minute /mo LASTDAY /tn "Bild Copy" /tr "C:\copy.bat" ...
5
votes
1answer
1k views

What windows 7 task scheduler event would respond to an idle END condition?

The Windows 7 task scheduler allows me to run a task when the computer goes idle, but there doesn't seem to be any obvious way to run a task when the computer resumes from idle, or is no longer idle. ...
0
votes
0answers
253 views

Windows 7 Task Scheduler Run On Idle End

I want to run a task every time I sit down at my computer, so that I will effectively run the task once when the computer ceases to be idle. I can't see a way to do this. Any suggestions?
1
vote
0answers
287 views

Idle state detection for server

Windows OS has a service that detects idle state. Details: Task Idle Conditions The computer is considered idle if all the processors and all the disks were idle for more than 90% of the past 15 ...
0
votes
1answer
45 views

how to start a long running program at system start and stop at login and restart at logoff

I am trying to mine some crypto currency with my computer. Untill now I have done this: At system start, I have scheduled a task to start the mining software at login I have scheduled another task ...
2
votes
2answers
75 views

Windows: How to start application when the other finishes

I would like to launch an application automatically, always when some other application finishes. Is it even possible to perform? My specific situation is: User connects to remote desktop and then, ...
9
votes
2answers
9k views

Windows 7 Task Scheduler advanced settings unclear

I'm trying to create a task that runs once an hour. The functions in the "Edit Trigger" dialog are unclear and seem to conflict. Under settings, the finest time interval for recurrence is "daily", ...
1
vote
1answer
90 views

Schedule on Windows Task Scheduler

If I want to schedule a task every 5 minutes for ever and ever, should I check: Once + "Repeat" every 5 minutes Undefinitely Daily + "Repeat" every 5 minutes During one day Undefinitely What ...
0
votes
0answers
52 views

No respect for the idle adjustments made in the Task Scheduler

Why doesn't my Windows 8.1 respect my adjustments to wait atleast for an hour before starting certain tasks? I've recently installed a fresh copy of Windows 8 (and upgraded it to the version 8.1). ...