Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
7 views

How to launch an application when a network drive is connected?

My question is about the computer I have at my workplace which is connected to the network. At log on I would like for a program to start. However, this program needs a network drive to fully function ...
0
votes
1answer
14 views

Scheduling Sequential Tasks in Windows Scheduler

I'm looking for some direction in scheduling sequential tasks within Windows Scheduler. The tasks in this instance are workflows that kick off data ETL and incremental load jobs. We want to only ...
3
votes
2answers
68 views

How does a computer sleep/wait without using all of its processing power?

Something I've never quite understood is how a computer can operate without using all of its processing power. (Likely this confusion stems from a dreadful OS class in college.) As far as I know, a ...
0
votes
0answers
18 views

Why doesn't Outlook properly open when scheduled to start using Task Scheduler?

I have scheduled a task in Task Scheduler to start Outlook at a certain time in the very early morning hours so it can execute a macro on startup. My settings in Task Scheduler are as follows. In ...
0
votes
0answers
16 views

7zip commandline not running via Windows Taskscheduler

I have a vbscript that runs different commands via cmd. One is robocopy and another is a 7zip command. Therefore I downloaded the 7z-Standalone Console. When I run my wsf via rightclick and run, ...
0
votes
0answers
129 views

Batch File will run from command line, but not Task Scheduler

enter image description hereI have several computers, all running Windows 10 Pro x64. All were upgraded from Windows 7/8 via the Microsoft free upgrade offer of more than 1 year ago. One of these ...
0
votes
0answers
49 views

Run task every weekday but don't on national holiday

Is there any out of the box solution in Windows Task scheduler to run task every weekday but skip it if it's national holiday like Christmas or, even better, Easter? If not out of the box then script?...
0
votes
1answer
97 views

Re-run the same .EXE program after previous finished

I have this PaymentAPI.exe program that need to be run, then rest for 5 minutes, then continue new run instance. It is crucial that not more than 1 instance should be running at same time. The running ...
0
votes
1answer
30 views

Scheduled task spills into the next period

I have a task in Windows 10 Task Scheduler that runs every hour. The task is running a Java JAR, and it's actually taking longer than an hour. Task Scheduler is terminating the task run when it ...
1
vote
1answer
47 views

How to determine what file is scheduled to run with SchTasks.exe in batch?

For a given task I need to determine what file it is trying to run with a batch code. Currently I use schtasks /query /TN ITCMD-CHAT-NOTIF | find "Ready" to determine if the task is active, but I see ...
1
vote
1answer
292 views

Windows 7 Task Scheduler is giving me an error saying “The specified account name is not valid”?

I am running Windows 7 on a Dell Precision workstation. I started having this issue right after changing my PC name. I get the error message when in the Task Scheduler Library folder and right-click a ...
0
votes
1answer
62 views

Creating a scheduled task that runs even if no one is logged in. (Windows 10)

I need to make a "hidden" scheduled task (being created by a .bat, no GUI stuff) that runs when any user is logged in, or if no one is logged in.
0
votes
0answers
108 views

How to run screensaver on Task Scheduler

So I have a screensaver that I want to run at a specified time. The first thing I tried was to use Task Scheduler, but it doesn't work for some reason. In the "Actions" panel in the task proprieties ...
0
votes
0answers
39 views

Is there a way to have a delay window for a scheduled task in the task scheduler

I have a task that I have set up that will auto reboot at a certain time. However, I would like an option for my users to delay the task. I know there is no option for this in the task scheduler ...
-1
votes
1answer
41 views

automatically reboot windows if it was on lock screen

I wanted to see if there is anyway on windows 10 that I can do a automatic reboot if device was on lock screen. the reason is our machines randomly stuck on lock screen which they will be fixed with ...
0
votes
0answers
100 views

Schedule a task in windows scheduler using batch command

How we can schedule a task in windows scheduler using batch file. I want to set a scheduler using batch command. echo off title Install Pentaho set /p downloadPentaho=Dowload Pentaho [y/n]?: if %...
0
votes
0answers
1k views

Batch file runs manually but not through Windows 10 Task Scheduler(Selenium script)

I really need help getting a .bat file to run from the Task Scheduler. It runs when ran from location manually or when Run is clicked from Task Scheduler. It doesn't run on a schedule when Run only ...
0
votes
1answer
25 views

How do I prevent Windows from stopping my task (created in Task Scheduler) when switching to battery power?

I have two tasks created, which otherwise run perfectly. The problem occurs only if I switch to battery power, as indicated by history of task run. How do I keep these tasks from being stopped by ...
0
votes
0answers
343 views

Windows 10 Task Scheduler: Do not run task if high CPU

I have a task that runs when I'm not on my pc that uses a lot of resources, but I would like it not to run if my computer already has a high CPU usage, if the program is already running, for example. ...
0
votes
0answers
26 views

How to set Windows task trigger as “No Networks Found”?

I ran into a problem recently where Windows was showing No Networks Found, with this icon (sorry if it's small, literally just screenshot and cropped). Anyway I determined there was some issue with ...
0
votes
0answers
106 views

Task scheduler not triggering task “on remote disconnect of user”

Task scheduler fails to trigger a task "on remote disconnect" of a selected user, different than the one the task runs under, if that task is set to run "whether user is logged in or not". Task is ...
2
votes
1answer
122 views

Stop monitor from waking up unnecessarily when running scheduled task .bat

I run Windows 10. My computer runs 24/7. In my power settings, the monitor is set to go to sleep after after a period of inactivity. This only applies to the monitor, and not the computer. The ...
2
votes
0answers
162 views

Windows 7: Task Scheduler/Engine reduces the Working Set/memory of applications, is there anyway to stop this?

I've been trying to auto-start some Auto-HotKey scripts using the Task Scheduler since it allows the scripts to run with admin privileges without a UAC prompt. Usually, the scripts fail after several ...
0
votes
0answers
54 views

How to use correct %programfiles% environment variable in a Scheduled Task?

Inside my startup.xml which i run with schtasks.exe I currently have %programfiles%\my_app\app.exe, as so: <Exec> <Command>%programfiles%\my_app\app.exe</Command> This works fine....
1
vote
0answers
349 views

Windows 10 Task scheduler not triggering when connected to a specified network connection

I have set these settings in the Task Scheduler in a Windows 10 machine (updated till version 1709) Triggers Log: Microsoft-Windows-NetworkProfile/Operation Source: Microsoft-Windows-...
0
votes
0answers
101 views

Is there a command to set screen scale in windows?

I'd like to set my screen scale to 113% at 2am then set it to 100% at 5pm. Is there a command prompt command I could use to do this via the Task Scheduler?
0
votes
1answer
15 views

Is it possible to send Shared Drive's login information via Scheduled Task Arguments?

I have an application stored in a shared drive that requires user and password to login and access its files. I also have a scheduled task that is supposed to run that application on a local pc. Is ...
1
vote
1answer
178 views

Powershell finally block not executed in windows task scheduler

I am running a windows task scheduler task: Powershell -command C:\file.ps1 2>&1 > c:\test.log file.ps1 contains Try{ echo "a" sleep 5 echo "b" } Finally{ echo "c" } ...
1
vote
0answers
507 views

Windows task scheduler does not kill child process

My task scheduler task has got one action: Start application--> D:\test.bat The batch test.bat spawns a child process (for example): notepad.exe When I manually start this task and end this task, it ...
0
votes
0answers
425 views

Scheduled task running on demand but not by itself with stored Windows credentials

I have a scheduled task that is supposed to run an application located in a server. The access to the server is only allowed to a specific user, so in order to be able to execute such application, or ...
2
votes
1answer
60 views

Use Task Schedule to offset System Time

I have a Windows XP computer which is not connected to the Internet or to a network. As per this answer it seems to be an issue with the CPU or power voltage. It is a cheap offbrand computer with no ...
2
votes
1answer
145 views

Scheduled task does not open batch file

I have a batch file that makes a backup of a project folder on my USB stick to a drive on my pc: @echo off rem This makes some funky colours set /a rand1=%random% %% 16 set /a rand2=%random% %% 16 ...
1
vote
0answers
253 views

LockWorkStation not working in Powershell through Task Scheduler

I'm writing a script which receive commands from Amazon Echo bridged by IFTTT. The process goes as follows: I ask Alexa to trigger "X" IFTTT sends that to Dropbox Applet Dropbox writes a text file ...
0
votes
0answers
610 views

Schedule silent VBS Windows settings change on Windows 10

I am looking to schedule (via Task Scheduler) a VBS script which changes my default web browser to Chrome silently (Windows 10, domain connected, with local admin privileges). At the moment, the ...
-2
votes
1answer
61 views

Auto Start/Stop of Programs

I want a windows application to start and run for 5 minutes and then stop and then again suddenly start and repeat the whole process again. But I don't know how to do it in Windows Scheduler or by ...
1
vote
2answers
211 views

Make executing CMD window show when it is ran by a task scheduler

I have task that runs on windows server 2016. The user account under which task runs is always logged on. When task runs, it kicks FBCMD.exe which is FinalBuilder program that executes some parameters....
0
votes
0answers
188 views

Task Scheduler runs without triggering action

I setup a task in Task Scheduler to run every 5 minutes with the history enabled. The task triggers a batch file that does the following: ECHO Start Bat Program at %date% %time%>>log.txt ...
0
votes
1answer
943 views

Task Scheduler to stop background process

I'd like to stop annoying background process from running shortily after it starts (by another task in task Scheduler). But I do need it to start, at least shortly, as it is important! Idea was to ...
3
votes
2answers
306 views

Incipient instability in Microsoft Task Scheduler?

Context: Microsoft Azure; Windows Server 2012 R2. I have a small number of Tasks in the Scheduler. All are marked, in the Settings tab, as "If the task is already running, then the follow rule ...
1
vote
1answer
357 views

On “Power-Troubleshooter” event in Task Scheduler not triggering

I am attempting to run an event via Task Scheduler in order to restart my trackpad driver (code to do so below) every time my system wakes up, as a troubleshooting measure. However, in Task Scheduler, ...
0
votes
0answers
43 views

How do I make a program open up, and bring the application window forward with Task Scheduler?

I know how to start a program at a specific time. Now I want that the program will open and its window come forward. I want to see the program when it starts and not see it only in the Taskbar and ...
1
vote
2answers
459 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 ...
1
vote
0answers
245 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 ...
0
votes
1answer
886 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 ...
0
votes
2answers
321 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 ...
1
vote
1answer
1k 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 ...
1
vote
1answer
423 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 ...
2
votes
0answers
346 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 ...
1
vote
1answer
6k 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 ...
1
vote
1answer
2k 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 ...