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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Task Scheduler running a Program incorrectly

I have created a python exe that copies data from a NAS to a external HDD. This is on a Windows sever 2012 and the NAS and External is accessible to use. Also using the user account with full admin ...
JohanvW's user avatar
0 votes
1 answer
43 views

Running Scheduled Task through GPO only once

Description: we have a software that was deployed incorrectly on user's PC and we need to remove it and reinstall it. we have created a GPO that runs a Scheduled task that removes the app using a ...
Yazan Annab's user avatar
0 votes
0 answers
47 views

How to automatically unlock Windows at specific times

I have a need to access the UI and it's not something that can be done with a locked computer with Task Scheduler. My computer is a Windows 10 machine. My sign in type is PIN. I tried to use anydesk ...
De Shad Bostic's user avatar
0 votes
0 answers
36 views

Schedule tasks on windows 11: administrator has no permissions

Trying to schedule a task, Enter user account information for running this task. User account selection drop down: sa abc700ge5d28c9a2 <myUserAccount> Where do the first two user accounts ...
eastwater's user avatar
  • 101
0 votes
0 answers
33 views

Windows 11 keeps starting Photos after sleep

After update to 11th version, every time after the PC wakes from sleep, Windows opens the Photos app. I can't find any setting for turning this off. Suspect it's some kind of event triggering it in ...
Ivan Nikolaev's user avatar
0 votes
0 answers
20 views

Task scheduler: On Shutdown? [duplicate]

In the Windows Task Scheduler, there is a trigger called "On startup". However, I'm looking for "On shutdown", but can't find it. Can you help me make a custom trigger equal in ...
Pingui's user avatar
  • 149
0 votes
1 answer
93 views

Make power-button force shutdown

I want my PC power-button to shut down Windows immediately. But what it actually does it prompt for action if there are e.g. unsaved changes. How can I force the power button to shut down immediately? ...
Pingui's user avatar
  • 149
0 votes
1 answer
68 views

Allow normal users to configure the TaskScheduler

Is it possible to give normal users such rigths that would allow them to configure the TaskScheduler or parts of it (like a single folder) on a Windows Server? Background: I need to create & ...
t3chb0t's user avatar
  • 473
0 votes
0 answers
61 views

Windows 10 Scheduled Task Powershell Script Unable to Turn off Monitors

I'm pretty inexperienced when it comes to Windows scripting (I have a linux background), but I attempted to create a Windows version of a udev rule anyway. I cobbled together pieces from various ...
J Jones's user avatar
0 votes
1 answer
98 views

schtasks asking for password at task creation

I have to schedule the launch of a program and I have to do that through Task Scheduler. I want to set the task to Run whether user is logged on or not and I don't want to check the Do not store ...
martinotecco's user avatar
3 votes
1 answer
127 views

Task scheduler runs at delayed time during sleep

EDIT 02/03/2023 The following is what I get from running powercfg -energy as suggested by one of the comments. I have a task that is supposed to run at 2 am every day. However I face 2 issues: It ...
tangolin's user avatar
4 votes
1 answer
353 views

Can one start WSL at boot (windows 11 pro) as of Jan 30 2023?

It is clear that it is quite tricky to get WSL to start at boot time, and that there are a variety of methods that have been used to achieve this goal. A (Dec 24 2022) answer to a recent post here ...
Geeky51's user avatar
  • 91
3 votes
1 answer
725 views

How can I modify a Windows task schedule via command line without requiring a password?

I can create a task on the Windows 10 command line using SCHTASKS without needing to enter my password. For example: SCHTASKS /Create /TN my_test /SC MINUTE /MO 2 /TR "msg %username% Hello World&...
User's user avatar
  • 3,377
0 votes
1 answer
53 views

Why isn't File Explorer immediately affected by Task Scheduler's light/dark mode toggler?

Through Task Scheduler, I set up Windows to automatically switch between Light and Dark Mode. However, although the process works overall--for example, Outlook, Word, Firefox, etc. all seem to work--...
The Editor's user avatar
0 votes
0 answers
134 views

Windows task scheduler doesn't start task when the battery is low

I create the task with SCHTASKS.EXE /create /tn "TaskName" /ru system /xml ".\TaskName.xml" This is the content of TaskName.xml <?xml version="1.0" encoding="UTF-...
Axeltherabbit's user avatar
0 votes
0 answers
13 views

How to start and end a program when another one is started and stopped in Windows 10

Basically this question but in the Windows 10 context. How to start a program when another one is started I am trying to set up an autohotkey script that runs whenever I start an animation software. ...
HFOrangefish's user avatar
1 vote
1 answer
418 views

How to open MS Edge as minimised with task scheduler?

I created a scheduled task to open MS Edge with task scheduler and wanted to open it minimised. I tried the arguments: /background , /min but it did not seem to work. Edge still opens maximised. ...
GodFreak's user avatar
1 vote
1 answer
171 views

Automatically adjusting Windows' screen brightness through task scheduler

I have been trying multiple apps, but I do not know how to adjust Windows' screen brightness automatically. Is there a way this can be done through Task Scheduler? To give a specific scenario, I'd ...
The Editor's user avatar
0 votes
0 answers
119 views

How to prevent Windows from shutting down if a scheduled task is running?

I have a task scheduled through Task Scheduler that can take a while to complete. I would like it to prevent Windows from shutting down (triggering the typical "waiting for program to close" ...
Pablo's user avatar
  • 1
2 votes
2 answers
1k views

Correct syntax to pass an argument to my parameter in a PowerShell script?

I have a script: function comparisonScriptAIX { Param( $sideToCheck ) #contents of my script #such as creating files #performing actions etc......
Niek Jonkman's user avatar
0 votes
0 answers
148 views

Windows Task Scheduler doesn't allow for whitespaces

When creating a new task and selecting the file to be executed via the file browser, it automatically encloses the path in double quotes but this does not work. How do I deal with whitespaces in the ...
little_fisher_man's user avatar
0 votes
1 answer
70 views

Connect automatically to wifi as soon as available and if it gets disconnected connect again

My windows 10 disconnects automatically from wifi sometime. My pc is not having monitor i am controlling it over remote desktop team viewer. Also sometimes running cleanup utilities disable the auto ...
raja's user avatar
  • 1
0 votes
1 answer
108 views

Task Scheduler is not running a task to the second

In Windows Task Scheduler, one of my tasks is scheduled to run at 4:14:58 PM, but it's running at 4:15:00 PM. To rule out any underlying problem, I scheduled the task to run at 4:17:00 PM, and it ran ...
Raj Narayanan's user avatar
0 votes
1 answer
129 views

How do I prevent this dialog from popping up when running a VB script from task scheduler?

This is the undesired dialog that pops up when I run a Task in the Task Scheduler that just calls a VB script. Any idea how to make my Windows understand, that I do want to run the .vbs file using the ...
lenny's user avatar
  • 125
1 vote
0 answers
34 views

What is a more reliable way to scan for user commands that will run administrative commands on a user system?

On an AD domain, with a Windows 10 "deployment server" and 50 other Windows 10 hosts, I want to add a way for users to make LOCAL GPO changes by issuing a command. Each user has their own ...
bluesquare's user avatar
0 votes
0 answers
22 views

how do i set up task scheduler to shred a specific folder?

I have a folder of important information I don't want people to have access to but I don't want to get rid of it right now. what I want is to set up a task to have it shredded using glary utilities in ...
Marius's user avatar
  • 1
0 votes
0 answers
128 views

Looking for a way to prompt a scheduled message with options for the user to start (or not) a long backup batch file

I'm looking for a way to use Task Scheduler to warn the user before starting a long backup batch by showing a message box that waits for user confirmation. I was trying to use task scheduler to run a ...
noob's user avatar
  • 1
1 vote
0 answers
31 views

Other Admins Editing my Task Scheduler Tasks [closed]

When I create a task in Windows Server 2016 Task Scheduler, it assigns authorship to me and looks like this: Unfortunately, another admin named john_local is able to later change the User of the task ...
Shawn Eary's user avatar
0 votes
0 answers
40 views

How to get notification if a Windows Task Manager job failed? [duplicate]

I have several scheduled tasks inside the Windows Task Manager. Is there any way to get notifications displayed for me as the user, if the execution of the task failed (the return code of the called ...
user avatar
1 vote
1 answer
131 views

using the same string of command in windows task scheduler does not work

So when i use the following command in a CMD window warp-cli disconnect && taskkill -im "Cloudflare WARP.exe" && cd "C:\Program Files\Cloudflare\Cloudflare WARP" &...
AwesomeVk47's user avatar
0 votes
0 answers
171 views

Can not run Sysinternals Process Explorer via Task scheduler (installed via winget on Win11)

I'm unable to setup the Process Explorer to run at startup via Task Scheduler. Regardless if I create the task via the Process Explorer menu 'Run at startup' or manually I am unable to make it work. I'...
Dalibor Čarapić's user avatar
0 votes
1 answer
195 views

Task Scheduler wait until first logon of the day but thereafter guarantee only run at 1 hour intervals

I am trying to create a task in task scheduler to run every hour and pop up a dialogue that lets the user pick from a list what activity they are currently working on. These tasks need to be spaced ...
Greedo's user avatar
  • 667
0 votes
0 answers
238 views

Task Scheduler opens file with OpenWith.exe and nested quotes arguments incorrectly

I have associated the ".sh" extension with "C:\msys64\mingw64.exe" so that shell scripts open in MSYS2. This works when I double click on the scripts from explorer, but when ...
goweon's user avatar
  • 1,638
0 votes
0 answers
470 views

How to get rid of scheduled task "\Microsoft\Office\Office Serviceability Manager"?

I wanted to disable this task, but whatever it is there is something that re-enables the task again behind my back. Allegedly some component running as NT AUTHORITY\SYSTEM. I can see it from the event ...
0xC0000022L's user avatar
  • 6,654
0 votes
1 answer
83 views

What are valid characters for Windows' SCHTASKS command's task name?

I'm creating a script to back up, sweep, and validate a database. There will be multiple tasks scheduled to do this management job. Q1: Can I use dashes, underscores, periods, and other punctuation to ...
Jonathan Elkins's user avatar
0 votes
0 answers
36 views

How can I stop a scheduled task in W10 from running, while the machine is sleeping?

I have a backup script that runs every two hours through task scheduler. With Modern Standby, the machine remains connected to the network to allow it to receive updates, VoIP calls etc. When I put my ...
NoExpert's user avatar
  • 121
0 votes
1 answer
448 views

Task Scheduler open Excel file with command line flag for VBA

I want to open a macro enabled workbook to capture data from the user every hour, and also pass an /e/ScheduledOpen flag to it to indicate in VBA if it was opened by task scheduler (in which case it ...
Greedo's user avatar
  • 667
3 votes
1 answer
2k views

Why does Windows Task Scheduler not work when selecting the option "Run whether user is logged on or not"?

I have a small VBS script that I want to run once per day. Set objExcelApp = CreateObject("Excel.Application") objExcelApp.Visible = True objExcelApp.DisplayAlerts = False sFilePathXlsm = &...
fritz.ann165's user avatar
0 votes
0 answers
33 views

Is there a way to open a specific program when the laptop detects a mouse is connected?

I am using an application called Fastkeys which is a gestures app, but it only comes in handy when I am using a mouse. So is there a task scheduler script that I can use to automate opening this ...
Rahul Singh's user avatar
0 votes
1 answer
62 views

Task scheduler to restart a program when GPU temps are high

I am running multiple GPUs in my system for mining and used MSI afterburner to set the overclocks. I have identified an issue where one of GPU gets non optimized once the ambient temp of my room rises....
Sharad Choudhary's user avatar
1 vote
1 answer
70 views

Does Task Scheduler start a service after entering password?

If I have a service to be started by Task Scheduler that has the property "run only when user is logged on", does it start at the log on screen or after the valid password is entered?
machine_1's user avatar
  • 203
1 vote
1 answer
619 views

Is Task Scheduler's StartComponentCleanup the exact same utility/process as dism.exe's StartComponentCleanup?

I have a computer that I can only access remotely, and running a scheduled Microsoft/Windows/Servicing/StartComponentCleanup with Task Scheduler seems to timeout after several hours. However, when I ...
cncmang's user avatar
  • 33
0 votes
1 answer
2k views

How to daisy chain tasks in the Windows Task Scheduler to run consecutively?

When one scheduled task is completed, I want another task to start immediately after. Task #1 already has 32 actions, so I cannot add another action. So I figured "Oh, I'll just split my single ...
Jon Grah's user avatar
  • 513
1 vote
0 answers
195 views

Task-scheduler: cannot view/edit/run the tasks CREATED BY OTHER WINDOWS USER

We created tasks using one windows user and we configured it in such a way that service account will run the task but not the windows user. Now the issue is when I login with other windows user I am ...
user2515056's user avatar
0 votes
0 answers
57 views

Batch file not working when run through Task Scheduler

I'm running DisplayFusion in Windows 11 and prefer it as my Taskbar. What I've been doing manually is using nircmd to disable the Windows 11 Taskbar and having DisplayFusion run its taskbar on both ...
darien.day's user avatar
0 votes
0 answers
22 views

Get informed when Windows Scheduled tasks doesn't run

A have a few tasks created on "TaskScheduler", they run some code that informs me in case of failures, but I really needed some method to get informed if a task did not run, either because ...
Mefitico's user avatar
  • 113
0 votes
0 answers
57 views

Task Scheduler - Windows 10

I am trying to use task scheduler on Windows 10 to run shutdown.exe after idle for 2 hours. When I set it up, it will work for 10 minutes instead of 2 hours, if I try 30 minutes of idle time it still ...
Jessica McDonald's user avatar
0 votes
1 answer
417 views

Why won't console window remain hidden while using Task Scheduler hidden property? [duplicate]

I'm trying to get my console program to run without being visible on the desktop. In Task Scheduler in Windows 11, I tried enabling it as a service and ticking the hidden checkbox, but it doesn't do ...
Neo's user avatar
  • 1
0 votes
0 answers
267 views

Windows server's task sheduler not working after few months

I am using windows task scheduler to run few tasks. But the tasks stop running time to time. May be after few months. Can I know why this happens? dose this happen because of user password expiration?
ashanrupasinghe's user avatar
4 votes
4 answers
1k views

How to LOCK computer after 'x' amount of time right after log on

Although there is a VERY similar question : How to lock my computer after a certain amount of time from login? I don't think that it is suiting my needs. I need my computer to lock NOT SHUTDOWN. What ...
DaVinziBoi's user avatar

1
2 3 4 5
11