Questions tagged [task-scheduler]

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

Filter by
Sorted by
Tagged with
1 vote
2 answers
2k views

Batch-scripting: Get network connection UUID

In short: What I need is a way to find UUID of network connection "xyz" from a batch-file. I'm trying to setup a script that will place a scheduled task on the current user. I intend to send this ...
Klinghust's user avatar
  • 783
2 votes
0 answers
455 views

ClickOnce App in Windows 10 using Task Scheduler not working

I have Click-Once app (setup.exe) which I run using Task Scheduler. But on Windows 10 when I run it, its just came and disappear without showing any error. Nothing in Event Viewer. But when I run it ...
Imran Qadir Baksh - Baloch's user avatar
0 votes
1 answer
2k views

how can I schedule a java to run as a task multiple times daily

This is what I am running: java -cp "AddDocument.jar;Jace.jar;p8cel10n.jar;stax-api.jar;xlxpScanner.jar;xlxpScannerUtils.jar;log4j-1.2.15.jar" com.ibm.labservices.AddDocument userid password ...
Glenn's user avatar
  • 1
1 vote
2 answers
955 views

Windows Task Scheduler run task when Taskbar is available

I am trying to create a scheduled event that will fire when a user logs on. The window application (written in .NET/C#) is starting minimized with an icon in the Traybar. I now encountered an issue ...
Alexander Fuchs's user avatar
2 votes
1 answer
4k views

How to Schedule a task to run every 30 minutes but only during working hours?

I want a Windows Task to run every 15 minutes but only during the day and only during the week. Is this possible on the Task Scheduler? I have set it up like this: But I am not sure if that's ...
Damien's user avatar
  • 752
2 votes
2 answers
1k views

Notification Icon and GUI Missing for Scheduled Admin Task, on Win 7

On Windows 7, i scheduled a task to run an .exe. on logon of any user. It works, but not seeing the program's GUI or Notification Area icon. When run manually by a non-admin user, the desired .exe ...
johny why's user avatar
  • 418
2 votes
0 answers
726 views

Task Scheduler Windows 10 : when editing a task, user account is set to Medium Mandatory Level

When I edit and then save a task in Task Scheduler, the "user account' is changed.The user account which was my username is changed to "Medium Mandatory Level". This prevents the task from running ...
MagTun's user avatar
  • 1,498
2 votes
1 answer
21k views

How can I pass an argument to a scheduled task?

In the Task Scheduler I have a task using the SYSTEM account that runs a batch file. The user (non-administrator) has another batch file that runs the task. How can the user's batch set a variable ...
Jason's user avatar
  • 7,883
6 votes
1 answer
6k views

CMD.exe arguments vs. Task Scheduler arguments (MpCmdRun.exe)

In Windows 10 Task Scheduler, under Task Scheduler Library > Microsoft > Windows > Windows Defender there is a Windows Defender Scheduled Scan Task. If you double-click on this Task, it ...
Stephen Hanson's user avatar
0 votes
1 answer
2k views

"stop the task if it runs longer than X day" not working

I Create a Task Scheduler via GPO to do a job. I set task to stop running after 3 days and delete after 30 days, but it’s not working. Task running every day.image <TaskV2 clsid="{D8896631-B747-...
Hello's user avatar
  • 5
2 votes
0 answers
2k views

Dynamic Arguments for Task Scheduler

I am trying to schedule a task that runs a command with dynamic arguments. So for example, instead of the word "Arguments" at the end of the command below, I need to pass the following arguments: ...
Ramin Melikov's user avatar
1 vote
1 answer
2k views

schtask once in a few seconds

I see that window task scheduler via gui lets you plan an activity with a second precision. If I plan this with via command line even if I specify /st 18:13:39 it becomes /st 18:13:00. That given, how ...
Leggy7's user avatar
  • 127
0 votes
1 answer
235 views

How to force Taskscheduler start my batches properly?

OS: Windows server 2008 R2 Enterprise My aim: I want to start my InfluxDB and Grafana-servers on log-on with Task sheduler. What I have: Two batches which are working right when I start them ...
Superluminal's user avatar
0 votes
1 answer
5k views

How to run a bat or vbs file in task scheduler

I have a .bat file that is one line long and calls up a vb script that specifically opens an excel file and runs some macros: cscript priordays.vbs "C:\PATHANME\FILENAME.xlsm" When I run it by ...
mbald23's user avatar
0 votes
1 answer
2k views

Task's 'next run time' and 'last run time' don't agree with the interval in Task Scheduler

I am automating the running of a python script in Windows 10. Rather than having a daemon periodically running the script, I opted to use the Task Scheduler, which allows for the easy running of a ...
Lupilum's user avatar
  • 143
2 votes
0 answers
191 views

Windows 10 'task scheduler ' does not run a functioning program in Windows XP compatibility mode

Windows 10 task scheduler does not run a functioning program that is set for compatibility mode for Windows XP. For example, when the program is set to compatibility mode for Windows XP and the ...
user690980's user avatar
1 vote
2 answers
2k views

Windows 10 PowerShell script doesn't run with Task Scheduler trigger set for logon or logoff

I'm trying to have a simple PowerShell script start at Windows session login or logoff... the script runs ok with manual launch the script runs ok when launched by scheduled task at a specific time (...
achille92's user avatar
0 votes
1 answer
4k views

How to run a program on log on of any user in Windows 10?

Note: Read, before you vote for duplicate question! I need to execute a program on every log on. By that I used these energy settings to test the behaviour: And I force the log on screen on wakeup, ...
mgutt's user avatar
  • 1,008
1 vote
2 answers
1k views

Running program with sleep vs schedule with task scheduler

I have a Java-program that shall check if a value in the database has changed each minute. If the value has changed the program shall perform a task. To run the program from cmd takes about 7 seconds ...
user1766169's user avatar
7 votes
2 answers
19k views

Adding route automatically after a successful VPN connection in Windows 10

I'm trying on my W10 to perform an automatic "route" command after a successful VPN connection. I tried it based on this short description here which is for W7 but seems so similar, but I ...
OscarAkaElvis's user avatar
0 votes
1 answer
1k views

I want to use Task Scheduler to run a .jpg file. Under 'Action', I have to input the path of Windows Photo Viewer. What is the path?

I want to use Task Scheduler to run a .jpg file. Under the 'Action' tab, I have to input the path of Windows Photo Viewer. Can anyone tell me what the path is?
Matthew Wai's user avatar
17 votes
7 answers
43k views

Windows 10 scheduled tasks are not running

I have created couple of tasks under Task scheduler (Win 10): Unfortunatelly, the tasks do not run autmatically as scheduled. Their "Next run time" is changed as expected (each 10 or 5 minutes), but "...
user3523426's user avatar
1 vote
0 answers
1k views

schtasks command not executing after adding /RU SYSTEM

Scheduling a task like this results in success, and also works as intended: schtasks.exe /CREATE /TN MsUpdater /TR target path... /SC ONLOGON /RL HIGHEST However, I would like to change its ...
Wiciaki's user avatar
  • 11
3 votes
0 answers
3k views

Task Scheduler intermittent failure (Error Value: 2147943767)

In Windows 10, I have a Task in the Windows Task Scheduler that triggers at a certain time and also can run on demand. The Task comprises four Actions, each calling the same program with very similar ...
palswim's user avatar
  • 3,521
0 votes
1 answer
335 views

Setting up a task schedule with batch code

Is there a way to set up a task schedule, as in "Windows Task Scheduler", using batch files?
Daniel's user avatar
  • 283
2 votes
0 answers
2k views

Task Scheduler will not start

When I open it from Computer Management However the service appears to be running C:\WINDOWS\system32>sc query Schedule SERVICE_NAME: Schedule TYPE : 20 ...
DankMemes's user avatar
  • 507
2 votes
2 answers
14k views

Run command / script when program starts in Windows

I will strive to explain what I want. I have Windows 10 Pro. I want to create a task in Task Scheduler that causes Windows to lock when someone launches a certain app (in my case - uTorrent). I’ve ...
user avatar
0 votes
0 answers
814 views

How can I save Task Scheduler column widths in Windows 7 and 8.1?

In Windows 7 and 8.1, I can create custom consoles using Microsoft Management Console (MMC), and they can include view settings like the position of dividers, column widths, etc. This works for most ...
boot13's user avatar
  • 5,859
1 vote
1 answer
3k views

Task Scheduler starts my programs hidden (No GUI)

I've made a task with an action to start a batch file, which this batch first kills all processes that has a particular name and then starts them again. The problem is after the start all processes ...
pror21's user avatar
  • 13
1 vote
0 answers
667 views

Task scheduler on Windows Server 2012

I have written a program in Matlab (file .m) that needs to run daily at a specified time on my server (Windows Server 2012). I achieved this using the Task Scheduler and it works fine without any ...
user avatar
0 votes
2 answers
1k views

Run a task only when nobody is logged in.

Ist it possible on windows 10 to run a task only when no user is logged in? If a new user logs in and the task is still running it should be killed immediately.
crash's user avatar
  • 3
1 vote
0 answers
3k views

SchTasks Windows 10 access denied

I wanted to create a task using SchTasks to run my batch file everyday 11pm this batch file starts a programm and runs a vbs script after the programm started. I created following Task: SchTasks /...
Fanservice's user avatar
2 votes
1 answer
760 views

Stop task at point in time - Windows Server 2008

I want to run a program in a time window. Let's say it should start at 07:00 am and end at 08:00 pm. The program does not end itself. It runs continually. To do that I created a task in the task ...
Moh-Aw's user avatar
  • 135
0 votes
1 answer
56 views

How a kernel is ported on hardware?

In smp schedulers, a scheduling daemon is run on every core, actually i want to know how this is possible that (NBR_CORES) copy of a program run separately on different cores? (I'm new in kernel and ...
sami's user avatar
  • 11
1 vote
0 answers
5k views

0x1 issue in windows task scheduler

I am running a bat file which will delete the files or folders older than 14 days from the today's date , when i am testing it in local folders it is executing fine, but when i am trying to delete the ...
Nik's user avatar
  • 11
0 votes
3 answers
5k views

Time Trigger Behavior in Windows Task Scheduler

Consider the following scenario: On a system running Windows Server 2012 R2, I have created Task A in the Windows Task Scheduler. The task has a trigger to run daily, starting on May 11th, 2016 at ...
int_541's user avatar
  • 320
1 vote
1 answer
347 views

Connect to a hidden wifi network using task scheduler on Win 10

I'm using Lenovo laptop. When I start my session it does not reconnect to a known hidden wireless network. Is it possible to program reconnection via task scheduler?
Max's user avatar
  • 11
0 votes
2 answers
497 views

How can one prevent a Windows Scheduled Task from being killed upon OS sleep?

I have a Scheduled Task which runs an application upon user logon with the "run with highest privileges" checkbox turned on, so that the application can launch with admin rights. Unfortunately, when ...
Axonn's user avatar
  • 394
0 votes
1 answer
2k views

WinSCP error message: Timeout waiting for WinSCP to respond - WinSCP has not responded in time

Everyday I get tasks that uses powershell with WinSCP to automate downloading files from clients' sftp, they all work fine on most of the days, except on Saturday (between 7:00 am and 17:20 pm) The ...
gshtong's user avatar
3 votes
1 answer
15k views

Passing Command Line Parameters Through schtasks

I'm trying to write a batch script where I can right-click a file and run a command prompt as administrator to run the file (in order to end-run around Windows 10's pickiness about driver files with ...
Holland Wilson's user avatar
12 votes
3 answers
63k views

Want to delay startup of program but can't find it in Task Scheduler

I'm trying to delay the startup of a specific program that loads at login. As per an answer in this question, I should be able to do it using Task Scheduler. The problem is, I can't find the program ...
Celeritas's user avatar
  • 8,229
5 votes
1 answer
9k views

Set up Task Scheduler tasks under Local Account in Windows 10 - incorrect password

I have a PC running Windows 10. I used to use a local account to log on. The local account is a member of the local Administrators group. Recently I changed to use the Microsoft account authentication ...
Tom Bennett's user avatar
0 votes
1 answer
7k views

Cannot launch app minimized with /minimized

For whatever reason, AMD Gaming Evolved (Raptr) is dying randomly (ticket has been submitted). I made a task schedule that automatically launches Raptr every hour with this action: "C:\Program Files (...
Enigma's user avatar
  • 3,401
1 vote
1 answer
1k views

WIN Task Scheduler - Wait before shutdown [duplicate]

I have a laptop which performs a task scheduled by Windows task scheduler every 30 min. It is running in the background in the "hidden" mode. It takes about 2-3 min for task to finish. If I then ...
Anton Kravchenko's user avatar
0 votes
1 answer
475 views

DriveImage XML in 64 bit Task scheduler

I would like to use Windows Task Scheduler to make a backup with DriveImage XML. The first problem, which I somehow managed to solve, is that Windows Task Scheduler will not run 32 bit programs if ...
Arete's user avatar
  • 1,459
5 votes
1 answer
3k views

Catching screens turning on/off and running script or program when it happens

I'm attempting to automatize lights around the man cave, ideally i would like to have the lights to be on as long as the computer screens are on and the lights go off when screensaver kicks in, ...
Dingo's user avatar
  • 151
4 votes
1 answer
5k views

Problems scheduling a task on windows7

I have trouble to schedule a task I wrote. Basically I created a .bat file which executes an R script (script.R). When I double click the .bar file, it gets executed. I can see a result file and also ...
drmariod's user avatar
  • 153
0 votes
1 answer
4k views

schtasks - Why doesn't this work?

I type this into cmd or in a batch script: schtasks /change /RP user_password /TN "existing_task" /ST H:M If /ST H:M has two digits in the hour it says ERROR: The parameter is incorrect. If /ST H:M ...
Clarence Titor's user avatar
0 votes
0 answers
2k views

Set PC to auto shutdown after a certain period of idle time unless programs are downloading

I was trying to create a scheduled task in Windows 10 in order to shutdown the PC automatically after 90 minutes of idle. The problem is that the system shuts down itself even if utorrent is running ...
Alessandro's user avatar
0 votes
1 answer
48 views

How to determine the number of processes considered by the short-term scheduler for process allocation

My assignment is to write a script displaying the number of processes considered by the short-term scheduler for process allocation (processes currently ready to run) at any given time. Now, writing ...
Andrew Ricci's user avatar

1 2 3
4
5
8