A scheduled task is a job scheduled to run at a specific time and frequency and run a specific command on the operational system.

learn more… | top users | synonyms (1)

1
vote
2answers
168 views

How can I force a scheduled .bat job to run in the foreground?

I have a simple .bat that runs a PHP script at the same time every day. @echo ON php C:\path\to\script.php argument pause It runs fine when I double-click the .bat file. And I set up a scheduled ...
0
votes
1answer
36 views

Batch rename script to rename/replace square brackets

I am currently using Windows Server 2003 and would like to create a schedule task or command to run which would batch rename and replace all square brackets '[]' from file names and replace them with ...
0
votes
0answers
19 views

Setting a CRON to be run on every 1st and the 3rd Monday

I need to set up a CRON job to be scheduled in every 1st and the 3rd Monday of every Month. I'm using the Plesk control panel for setting these as follows. Currently CRON runs successfully, ...
1
vote
1answer
39 views

how to set task scheduler to run disk cleanup and automatically respond to popup window using 'Enter' key

I'd like to schedule a task running windows application 'Disk Cleanup', but how to automatically respond to the popup windows using 'Enter' key?
20
votes
3answers
24k 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 ...
0
votes
2answers
289 views

Shutdown/deallocate VM doesn't work in scheduled task

I created a scheduled task to shuwdown/deallocate itself (it's a VM on Azure) with Powershell. The PowerShell script is: Stop-AzureVM -Name "myvm" -ServiceName "myservice" -Force If the PowerShell ...
1
vote
1answer
52 views

How can I make Windows XP automatically logoff 2 hours after logging in?

I have a Windows XP netbook and it is protected with a password. I want to be able to control the time other people spend on the computer, so whenever anyone logs in I want the computer to ...
2
votes
1answer
301 views

batch file runs fine manually, but line that launches exe fails when batch run in task scheduler

I have a batch file (below) that works perfectly when run, however, when I set up the bat file in the task scheduler it ain't working right. The task scheduler does indeed run the task successfully, ...
0
votes
1answer
101 views

Auto maintanence for Windows 8 will not stay disabled

It is imperative that I disable auto maintenance and do it manually because I need access to my PC at odd hours. I thought I had disabled it by going to Schedule Task > Task Scheduler > ...
2
votes
5answers
3k views

How to automatically move a file to another PC on the network?

Here is what I am after. I have 2 PCs connected on a network and one of them prints out an Excel spreadsheet every night to a specific folder. Is it possible to use a batch script to copy that file ...
0
votes
1answer
41 views

Can I Rename the Title of Command Windows from the Task Scheduler

We have several command line apps that are launched from the Task Scheduler. They all have the title 'taskeng.exe'. Is there a way to rename the windows, to make them easier to identify? We're ...
1
vote
0answers
132 views

How can I diagnose why my launchd task isn't running on schedule?

I've read the launchd.plist man page, Is launchd supposed to pick up "missed" events?, and launchd seems ignore StartCalendarInterval on Yosemite but none of those have allowed me to ...
0
votes
1answer
21 views

Why the tasks cannot be started?

I have defined scheduled task like it in a windows 2012 server which is running in a Virtual Box. I can start these tasks with schtasks /RUN /TN start-dop001 as a user 'dop001'. The task will ...
3
votes
1answer
197 views

Windows Task Scheduler Chart?

Does anyone know if there is any utility/tool that can make a chart of all tasks in Windows Task Scheduler based on time and date, so I will know if there is any overlap at certain point of time ...
3
votes
1answer
82 views

Slurm jobs are pending, but resources are available

I use SLURM as a job scheduler and queue for a small cluster (single node with 64 cores). To submit a batch job I use: > sbatch run.sh Where run.sh looks like: #! /bin/bash #SBATCH --ntasks=4 ...
3
votes
1answer
8k views

How to import a scheduled task automatically from an XML file?

I have created a scheduled task in Windows 7. The task is running perfectly well on my computer. I have also exported the task to an XML file and want to create the same task on another computer ...
0
votes
0answers
70 views

Task Schedule excel file with ODBC/Oracle connection

I am having problem running an excel file with ODBC connection for Oracle to run via Windows-7 Task Scheduler. It will just say running. What the excle file does. After I open the file, it will ...
0
votes
0answers
64 views

Running mode from the Windows 8.1 task scheduler

I use a Lenovo Y50-70 laptop and it has a known issue that resets the keyboard's repeat rate to the minimum after resuming from standby. A fix was posted here already, but I would like to run it from ...
0
votes
0answers
17 views

Disconnect keyboard/mouse in Windows 7/8.1 as trigger for running a programm

I'm using a KM (keyboard/mouse)-switch toggling between Desktop and Laptop Windows (7 and 8.1) machines. Both are connected via Displayport to the same UHD monitor which is able to select the active ...
1
vote
1answer
64 views

How to target an event by the process name as well as the ID?

I have managed to create a scheduled task that will be triggered by an event ID. For example, I have a task that will run winver.exe whenever event ID 4688 is logged. So if I run notepad.exe from Run ...
0
votes
0answers
45 views

Computer does not stay awake after scheduled task

I have a scheduled task that wakes up the computer to run a batch file. However the computer turns back off after some time. I have my computer set to (never sleep) so after waking up from the task it ...
0
votes
0answers
28 views

Why doesn't my Windows 7 task show up in Task Scheduler?

Windows 7 Pro 64 bit: I added new task, to run .bat every night, by doing steps below. But new task doesn't show up in Task Scheduler's Task Status or Active Tasks. I tried adding it again, but it ...
0
votes
0answers
199 views

Windows task scheduler with regular user

I have a powershell script on my network share (\server\dir\my.ps1). if I run this from command prompt (powershell -file "\server\dir\my.ps1") than work as expected. if I create a basic task in the ...
0
votes
1answer
45 views

Run Windows 7 Task CMD with SYSTEM user

I have a .cmd script I want to run every 5 minutes. if I add a Windows 7 Task for that it runs fine if I provide a real user. But I want to run it with the SYSTEM user. Doing this the script does ...
0
votes
0answers
40 views

Windows 8.1 Apps starting in background

Being new to Windows 8.1, I'm always curious at what it does and how it differs from the older versions. One interface that I've been paying attention to is the task manager. While doing so, I ...
11
votes
4answers
4k views

How to set a Linux Ditribution to self-destruct (to wipe everything from the system partition) via a script

I shall be helping to facilitate a course that uses licensed software. The software is somewhat expensive and allows only a limited number of concurrent installations, so what I'll do is to install ...
1
vote
3answers
303 views

How to Delete a file at a specified date

I want to delete a file (a .exe) from a folder, after a specified date, say 25/Feb/2010. How can I use scheduled tasks and batch files for this. I am not sure whether the code below work : @ECHO OFF ...
6
votes
4answers
4k views

Accessing Environment Variables in a Scheduled Task

When setting up a scheduled task, for the action section I'm trying to access an environment variable for the location of the executable that I wish to run. This is mainly because on one machine the ...
0
votes
0answers
69 views

High CPU in Windows 8.1 but can't access Windows backup as per previous answers

Since unfortunately needing to purchase a laptop while WIndows 8.1 is the norm, I've been plagued with problems of high CPU. After a month of use, I inadvertently logged into the Windows Store and ...
0
votes
0answers
99 views

Automatically Wake PC at certain time without wake-on-lan

I feel like this shouldn't be too difficult. I want my PC to turn on at 7:00 AM every morning. I have a Toshiba satellite L50-B-1LN running windows 8. It uses UEFI instead of a normal BIOS. In there ...
0
votes
0answers
18 views

Task Scheduler permissions in Win 2008 server--who has edit permissions?

I'm a little confused by Windwos Task Scheduler permissions (Win 2008 R2). Do local admins have some, but not all, permissions to any task? For example (and excuse me for what may seem a rant) I ...
1
vote
2answers
1k views

How to run AutoHotKey script as an admin every time a user logs in?

I have computers where quite a few users log in. I want to restrict the usage to a maximum of 12 hours after which an ahk script logs off the user. I have the following solution but couldn't figure ...
0
votes
0answers
85 views

Windows Task Scheduler - Task Starting Despite AC Power Condition

On a laptop, I have created a task in Windows Vista SP2 which has the condition "Start the task only if the computer is on AC power". Also checked is "Wake the computer to run this task". I then ...
1
vote
0answers
32 views

Ways to start a program at windows startup?

I had an updater program that started itself on logon but was not able to find it anywhere. After some time I found a hidden task in the task scheduler and managed to turn it off. That made me wonder, ...
0
votes
0answers
32 views

Can you run a scheduled task when the monitor is turned on / off?

As the title says I am wondering if there is a way to detect when the monitor is turned off at all? There are "Hardware Events" under when a specific event is lodged menu however I am not sure if this ...
0
votes
2answers
518 views

Computer (win 8.1) starts by itself

My windows 8.1 desktop has suddenly decided to start itself during the night. It has not done that before and I suspect the behaviour might be new since new year. 1st of january 2015, it started 0615 ...
8
votes
4answers
11k views

Sync Google Drive when not logged in

I have installed Google Drive on Windows Server 2008 R2. When I login to the server, Google Drive starts automatically and synchrnoizes files, pulling changes down from the cloud. All good so far. ...
2
votes
2answers
5k views

Is it possible to schedule my laptop to mute and unmute at a specific time?

I always used to wake up to my favorite radio station on my alarm clock. However, I have moved and can no longer get that radio station over the air. To solve this problem, I would like to stream the ...
4
votes
1answer
680 views

Unlock PC with Windows Task Scheduler

I need to set up a Scheduled Task to unlock Windows 7 PC at specific time. And second Task, to lock at other specific time. Is this possible by cmd.exe command, or I need to use some third party ...
2
votes
3answers
3k views

it opens “open with” prompt whenever scheduled task run

I am trying to run a .vbs file on every five minutes. I am trying to do this using windows task scheduler. In Actions tab -> New Action, I select the file ("D:\Documents\FC3 Savegames\FC3.vbs") ...
1
vote
1answer
2k views

“VirtualBox - Critical Error” When VMs are Runned From Scheduled Tasks

I have 2 VMs running with VirtualBox under a Windows 2003 Server R2 Standard x64 Edition, both are started with scheduled tasks when server starts. VMs: Debian x64 Windows XP Professional Both ...
0
votes
1answer
121 views

Run a scheduled task when a user changes the desktop background

I have a logon script deployed via GPO that changes the users desktop background to a company default, while also adding information via BGinfo that is useful for helpdesk calls. However, users ...
1
vote
1answer
696 views

Run a program before Logoff and wait for finish

When I want to run a program (.exe \ .bat) before Windows 7 Home Premium Logoff \ Restart I use the Task Scheduler and I set a custom event: Log: System, Source: Winlogon, Event ID: 7002 \ 4634 \ 4647 ...
0
votes
0answers
29 views

Start an Indefinite Process on System Startup in Windows 7

I'm having a ton of trouble figuring this one out. I've written a listener program that just sits and waits for specific packets on a port on my system. I've tested it and know that it works so now ...
0
votes
2answers
310 views

windows scheduler that runs every x minutes daily in the command line

Is there a way to schedule a task (.bat) through the command line that runs every 5 minutes daily? I also want it to run even if the user isn't logged on. What is the exact command line syntax?
3
votes
3answers
11k 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 ...
2
votes
1answer
35 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?

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
1
vote
4answers
163 views

Shut down PC at a determined time

I have a software (calibre ebook manager) that fetches news at 6 am. I want to do the following : Wake computer at 5:50 if not already on.(easily done in bios) A scheduler opens calibre at 5:55 ...
0
votes
1answer
478 views

Restart a computer at a given time with PowerShell

I'm looking for a way to restart a computer with PowerShell (Restart-Computer), at a given time (Example: 03:00AM). The PS-Script itself will run at a random time, when the user executes it, so it's ...
0
votes
0answers
28 views

How to schedule a task based on an application event?

I want to schedule the computer to be locked when a specific application displays a comment/notification above its Icon. Currently, I am trying to use the Task Scheduler in Windows 7 for this but do ...