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 [windows-task-scheduler]

Task Scheduler is a component of Microsoft Windows that provides the ability to schedule the launch of programs or scripts at predefined times or after specified time intervals.

0
votes
0answers
24 views

Taskschd.msc / SCHTASKS “The user account you are operating under does not have permission…”

Been receiving the following error when trying to modify tasks with taskschd.msc and SCHTASKS (in CMD prompt). Specifically in the UpdateOrchestrator folder/directory of "C:\Windows\System32\Tasks\...
0
votes
2answers
33 views

What happens if I set single threaded process to realtime priority on multicore PC?

I'm referring to Windows 10 operating system, but I believe the answer might be OS independent. On windows, the real-time priority level is the highest priority level, use to process keyboard and ...
0
votes
0answers
6 views

Changing power scheme from scheduler not working in Windows 10

I have configured a task in scheduler that runs powercfg.exe using the -setactive option to change power schemes to the high performance power scheme (never allow sleep). The idea is that after 4 ...
0
votes
1answer
31 views

Problems connecting a Windows 10 box to an AS/400 share and getting it to run a batch file

A few weeks ago we had an Windows XP box connected to an AS/400 network share mapped to drive P://. Batch files could be run from a remote call command from the 400. The batch files were called with a ...
0
votes
1answer
28 views

How to modify a task in Windows Task Scheduler without having permission?

My computer wakes up every day at 1:00 by (powercfg -lastwake) 'NT TASK\Microsoft\Windows\UpdateOrchestrator\UpdateAssistantWakeupRun' when I want to modify the task it does not react for OK. When I ...
2
votes
1answer
26 views

How do I configure a batch file to be run as a Scheduled Task? [closed]

I have a batch file called index.bat, which runs the following command: node index.js I tried to configure the file to be run on start up using schedule task manager and but it did not work as ...
0
votes
0answers
42 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
29 views

Enable NUMLOCK when computer wakes for sleep mode using Task Scheduler

I am from the Netherlands so apologies for my English in advance! I am doing everything that is mentioned in this post:click this link. The Powershell script works because when I go to the file and I ...
0
votes
1answer
95 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 ...
2
votes
1answer
32 views

prevent cleanmgr.exe from deleting tmp files

I'm running an R shiny app locally on my Windows machine that auto-runs every day using a batch file. I recently ran into an issue lately where the R tmp directory /tmp/RtmpXXXXX is removed and the ...
0
votes
1answer
28 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 ...
0
votes
1answer
55 views

Windows 7 Ultimate: replace “Hibernate after” with “Shutdown after”

Sometimes I put my laptop to sleep (suspend to RAM, not hibernate), but could happen that I don’t reactivate it for days: in such case, despite the fact that the sleep state consume little percentage ...
0
votes
0answers
29 views

Taskschd.msc -.bat won't write to file

Have a .bat file set to run at logon in taskschd.msc. Have confirmed that it runs at logon (.bat and window appears). However, it isn't writing to the .txt file as one of its functions. It works ...
0
votes
0answers
15 views

Windows Server 2008 Task Scheduler Error While Add/Disable a Task

When I try disable a existing task or add a new task, the following error appears. Transaction support within the specified file system resource manager is not started or was shutdown due to an error....
0
votes
0answers
51 views

Task scheduler - Force program to visible in foreground (visible on the main monitor)

I am using Task Scheduler to open a website, as per the following: Schedule to open website However, the browser always opens in the background (i.e. the window is not visible and is not on the main ...
2
votes
1answer
28 views

Schtasks.exe with quotes

I use this command to create a task: schtasks /Create /TN ITCMD-CHAT-NOTIF /SC ONLOGON /tr "%cd%\Notif\Notif.vbs" /F However a problem occurs. When there is a space in the path it still does not put ...
1
vote
1answer
46 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 ...
0
votes
1answer
100 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 ...
1
vote
1answer
25 views

Task Schedule on resume from idle?

With schtasks.exe (Windows Task Scheduler for command prompt), you can make a task that is triggered on idle, which I use. However, is it possible to make a trigger on resume from idle? I.E., when the ...
0
votes
1answer
268 views

How to pass multiple arguments?

How to pass multiple paramaters for Start a program action in Windows Task Scheduler for a batch file? There's no built-in syntax hint...
0
votes
1answer
58 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.
2
votes
1answer
26 views

7zip recursive unzip working well in CMD but not in batch

I am using this command below to unzip recursively from the source folder(D:\cnosftp\) and put the extracted file in the same subfolder. FOR /R "D:\cnosftp\" %I IN (*.gz) DO "C:\Program Files\7-Zip\...
0
votes
1answer
152 views

Scheduled tasks Run on first or next login for any user

I'm looking for some help with scheduled tasks. I have some few experiences but this goes a little deeper and so far I couldn't find anything to answer my question. So what I would like to do is to ...
0
votes
0answers
49 views

How can I ON the check box “If the task fails restart every” checkbox under setting tab in windows task scheduler with schtasks from command line

I need to click the checkbox "If the task fails restart every" checkbox under setting tab in windows task scheduler with schtasks in windows. Below is working fine for creating and starting the task ...
0
votes
0answers
75 views

How do I run this VBscript when logged off?

I have this VBScript I want to run everyday, even if I'm not on my computer: Option Explicit Dim file, folder Dim xlapp, xlbook, filesys, accapp Dim sorte, journee, projet, compagnie Set xlapp = ...
-1
votes
1answer
39 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
1answer
39 views

Change Wireless Connection on a Schedule

How can I change my wireless network connection to another connection on a schedule in Windows 7?
0
votes
1answer
10 views

Why doesn't my recently run task show up in the Task Status window

Using the Windows 7 Task Scheduler, I created a very simple task (a .cmd file to delete a file) and set it to run a couple of minutes in the future. The task ran (the target file has been deleted), ...
0
votes
0answers
40 views

I can set up a task to alert me if a scheduled task fails to start. What if THAT task fails (repeatedly)?

This question gives a great way of setting up a task which triggers if another task in Windows Task Scheduler fails to start: Make Windows Task Scheduler alert me on fail However, a commenter brought ...
2
votes
2answers
1k views

Task Scheduler- Batch “Run whether user is logged on or not” not working

I've created a batch file (EnableDisable.bat) that will disable a Windows Task Scheduler job (SampleJob) on a local system, if a job with same name (SampleJob) is already enabled and running on ...
4
votes
3answers
220 views

How to exclude scheduled task from Windows Defender?

I have scheduled task that should run every two hours, with the following command line action: Program: mshta Arguments: vbscript:Execute("CreateObject(""Wscript.Shell"").Run ""powershell -NoLogo -...
0
votes
0answers
16 views

Task Scheduler won't schedule wake timers (while other software is able to do so)

I created a new task, with "Allow this task to wake PC" checked, but "powercfg /waketimers" shows nothing. I tried some third-party apps and they do work as expected. Windows 7 x32 (yeah I know) ...
0
votes
1answer
313 views

Display message box that prevents computer shutdown until acknowledged

Since I always forget to close my window at work, I'm trying to display a small message box to remind me when I shut down my computer. The script is easy enough: Add-Type -AssemblyName System....
0
votes
0answers
24 views

How To Trigger A Windows Task When Phone Is Plugged In [duplicate]

I use this awesome tool gnirehtet for reverse tethering, i.e. using the internet connection from my Windows PC on my phone. Now, I would like to start this tool automatically, when the phone is ...
0
votes
1answer
104 views

How to start two applications simultaneously in Task Scheduler without one waiting for other being closed?

I want to delay the startup of two apps by a minute. So I created a task that's triggered at log on. Startup Apps (I'm not allowed to embed an image) However, only the first app gets started. The ...
0
votes
0answers
52 views

Cannot find Event ID for Lenovo System update using Windows Event Viewer

Thank you for taking the time to read this. Context: I am currently trying to implement Bitlocker Encryption on a Windows 10, Lenovo T460s Laptop. I have encrypted that laptop. However looking at ...
1
vote
0answers
80 views

Task running-use SYSTEM or Administrator user?

We have an application that runs on a schedule, setup in Task Scheduler. This task is created programatically by our configuration application. Now, the application needs to access files in a ...
0
votes
1answer
200 views

task scheduler and search indexer consuming CPU on Windows 10

Microsoft Windows Search Indexer and 'Service Host : Task Scheduler' are consuming big portion of the CPU, something that i have noticed is that they use the same amount of CPU most of the time For ...
0
votes
0answers
206 views

Task scheduler cannot connect to windows network share unless user logged in

Task scheduler fails to run a task, triggered at startup, which calls a script which is located on a network share and cannot connect to windows network share unless user logged in. This network ...
1
vote
0answers
229 views

Windows Scheduled Task executes SQL scripts as Anonymous Logon, despite being associated with a domain account

I've built an EXE that I need to run every hour, for the rest of forever. To do this, I'd like to use Windows Task Scheduler. It would be more appropriate to run this on Windows Server, but ...
1
vote
1answer
96 views

Email Notifications On Program Install

Is it possible to use the task scheduler on windows to receive an email notification every time a program is installed? If so, how? Right now, I have a Task setup to notify when there is a login that ...
0
votes
1answer
207 views

Task Scheduler event-based trigger active within certain time frame

I have successfully set up my task to run on event 4802 (screensaver) but it runs too often as I can be away for a while and ssaver can launch. Now the trigger definition looks like that How to ...
0
votes
0answers
699 views

How to solve a Windows 10 Task Scheduler error

I have several tasks in Windows 10 that have recently failed. I've made no recent changes to the server. The tasks were working fine for years, and then started failing in December of 2017. I have the ...
1
vote
1answer
72 views

Is there a way to manually create log files for certain task scheduler tasks?

I want to log the exact time when certain scheduler tasks run and finish. I've tried playing around with enabling history, but it seems I need to enable for all tasks? I didn't see an option to ...
0
votes
1answer
602 views

batch file from scheduled task returns code 2147942401

I am trying to schedule a job to run a batch file with Windows 10 Task Scheduler, but it results in return code 2147942401. The batch file is on remote location so I am giving the absolute path "\\\...
1
vote
0answers
290 views

Trigger Task Scheduler in Windows 10 when display wakes up

I don't have enough rep to comment on this post so I am posting my own question that is very similar to that post. I have an app I want to run when the computer goes idle, and then quit when I wake ...
0
votes
2answers
3k views

Scheduled tasks in Windows Server 2016 don't run after being disabled then enabled

I am having a problem with the Task Scheduler on Windows Server 2016 not running repetitive tasks after they are disabled and re-enabled. I create a task with a “Triggers->Start” of five minutes in ...
0
votes
0answers
70 views

Automatically running command line after returning from idle

I use a monero miner on my personnal computers. My goal is to make it running as transparent and hidden as possible (i.g as soon as computer idle = launch miner with "cpu + gpu" configuration and as ...
0
votes
0answers
569 views

Acting on exit code in Windows Task Scheduler

I have the following .bat script: set /a num=%random% %%2 exit /b %num% I would like to execute that batch script in Windows Task Scheduler in such a way that when the exit code is 1 Task Scheduler ...
1
vote
1answer
174 views

Task scheduler running duplicates of my .bat despite setting not to

Hey kind of a noob with this stuff. But I set up a task scheduler to when idle for 5 minutes, run a .bat. I also have it set to "Do not run multiple instances", yet whenever I come back after an ...