Skip to main content

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
131 votes
10 answers
131k views

How to prevent Windows 10 waking from sleep when traveling in bag?

I am not turning laptop off, but rather putting into hibernation, as it starts much faster and I can continue working without starting all apps again. It was working long time from Windows XP to ...
TN.'s user avatar
  • 2,060
42 votes
1 answer
213k views

How can I run a scheduled task as SYSTEM

I can't add SYSTEM account in task scheduler. When I try to add it becomes MYDOMAIN\SYSTEM and I get invalid user error. Can I use SYSTEM account to run a scheduled task?
Nime Cloud's user avatar
  • 1,190
31 votes
6 answers
79k views

Starting scheduled task by detecting connection of USB device

I know it has been discussed that it is not possible to start an application from an usb drive upon connection due to limitations of autorun (or autoplay??) in Win 7. But it is possible to create a ...
gemisigo's user avatar
  • 478
28 votes
5 answers
137k views

Automatically close program at a scheduled time each day

Is there a way to automagically determine if a program is running and close it at scheduled time, say 3 am every day? Maybe use task scheduler to close said application? if this is possible any ...
user avatar
25 votes
1 answer
53k views

In Task Scheduler what is the difference between "at logon" and "at startup"?

They both sound synonymous. Do programs "at startup" run before the programs "at logon"? Or do they still run if you don't logon?
laggingreflex's user avatar
22 votes
3 answers
44k views

Should a scheduled task remain in the "Running" state?

I'm new to using the task scheduler and I'm using it to run a batch file provided online when the computer boots. I r-clicked it and told it to run. It did and all is fine, but the Status of the task ...
NSouth's user avatar
  • 343
20 votes
8 answers
27k views

Can't modify task "Reboot" in win10 home

I have windows 10 home, and I'm logged in as my user, which has administrator privilege. I go in the "Task Scheduler", under "Task Scheduler Library > Microsoft > Windows > UpdateOrchestrator"...
msb's user avatar
  • 1,527
20 votes
3 answers
38k views

Will Windows Scheduled Tasks execute if the computer was off at the scheduled time?

If I schedule a task using windows task scheduler for, say, 2 minutes from now, and for some reason the computer is shut down 1 minute from now, and turned on 3 minutes from now, will the task that ...
Mark Elliot's user avatar
16 votes
2 answers
57k 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 ...
krumiya's user avatar
  • 161
16 votes
4 answers
20k 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 ...
Alex F's user avatar
  • 440
16 votes
2 answers
15k views

What is the difference between "stop the task if it runs longer than" inside Trigger and under Settings tab?

When I schedule a task in Windows Task Scheduler, I can set "stop the task if it runs longer than" inside task trigger or inside Settings tab. If I set it inside the trigger it does not automatically ...
alpav's user avatar
  • 467
13 votes
3 answers
15k views

Creating Task With a Batch File - run task as soon as possible if missed

When creating a task with a batch file or command line, how do I specify the following option? Run task as soon as possible after a scheduled start is missed I know that this option exists via the ...
Nick Painter's user avatar
13 votes
3 answers
26k views

How do I prevent the Windows 10 "Maintenance Activator" from waking my PC randomly (even after disabling wake timers)?

Windows 10 wakes randomly after putting it to sleep. I have tried all proposed solutions from this old question: I have added a disable flag for the automatic maintenance in the registry, disabled ...
Wuschelbeutel Kartoffelhuhn's user avatar
12 votes
4 answers
7k views

How to schedule a Windows task on wake?

I created a task in Task Scheduler to run at system startup, and it works great. However, I want to change it to run every time Windows wakes from sleep and I cannot figure it out. The relevant ...
lurning too koad's user avatar
12 votes
1 answer
22k views

Run a scheduled task after a Windows service is started

I want to run a scheduled task every time after a given service is started. I have looked for a way to set a trigger on a service start, so that the service in question may be started automatically ...
Thomas's user avatar
  • 123
11 votes
8 answers
21k views

The selected task "{0}" no longer exists. To see the current tasks, click Refresh

When I start my task scheduler on Windows 7 I get a dialog with the following error: The selected task "{0}" no longer exists. To see the current tasks, click Refresh Also there's a UUID, that ...
leeand00's user avatar
  • 22.7k
11 votes
6 answers
40k views

How do I get Windows 10 to chime / beep on the hour?

I'd like the computer to beep on the hour without having to install an entire third party software just for this. I tried using Task Scheduler for this, following the steps outlined here, but when I ...
San Diago's user avatar
  • 265
9 votes
1 answer
26k views

Scheduled task giving last run result 0x80041324

I've got a scheduled task set up in my Windows 7 machine which is meant to run a BAT file when I'm not around, i.e. the machine has been idle for 15 minutes. Does anyone know how to track down the ...
SteveC's user avatar
  • 2,154
9 votes
4 answers
56k views

How do I track the progress of XCopy command while It's running?

OPSYS: Win10Pro 64 bit RAM: 10GB I created a batch file which I then saved to the desktop of the local Administrator account. The batch file command line is this: xcopy "F:\movies" "L:\movies" ...
ChrisinAK's user avatar
9 votes
3 answers
49k views

Windows task schduler keep showing 0x41301

I have wrote the following .ps1 file:- [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} $request = [System.Net.WebRequest]::Create("https://localhost/") $response = $...
John John's user avatar
  • 285
9 votes
5 answers
29k views

How do you schedule a task (using schtasks.exe) to run once and delete itself?

I want to schedule a task from the command prompt (using schtasks.exe) to run once and delete the task entry from the Task Scheduler Library after completion. After looking through the usage guide, I ...
Vinayak's user avatar
  • 10.8k
9 votes
2 answers
18k views

Task Scheduler returns Directory Name Invalid for valid path

I'm trying to use Task Scheduler to run a Ruby script every night. When I try to run the script, I get error 0x8007010B which seems to be Directory Name Invalid. The directory I'm starting in is a ...
SSteve's user avatar
  • 275
9 votes
1 answer
22k views

Delete the "Optimize Start Menu Cache Files" task

Many of you are probably familiar with the fact that when a new user logs into a server in Windows, there will be a new task created in the Task Scheduler which is called "Optimize Start Menu Cache ...
Nacht's user avatar
  • 717
8 votes
3 answers
20k views

How to start a Windows task on `Workstation Unlock` and add 2 or more triggers?

I'm using Windows 7, and I want to make a scheduled task with my options using the Task Scheduler command-line mode utility that is called "SchTasks". But there are some problems using Schtasks: ...
Amirreza Nasiri's user avatar
8 votes
5 answers
9k views

Scheduling silent hourly Windows Defender definition updates using Task Scheduler on Windows 8

I want to update Windows Defender's definitions every hour and came up with the idea of using the Task Scheduler to execute the Defender update service with the signature update argument. ~/Windows ...
Afzal's user avatar
  • 1,385
8 votes
4 answers
26k views

How can I allow non-administrators to use shutdown.exe?

As per the comments in the accepted answer to this question, I'm having issues running a scheduled task which calls shutdown.exe, even when the user is an administrator. I'm administrating someone ...
Naftuli Kay's user avatar
  • 9,651
8 votes
1 answer
3k views

What windows 7 task scheduler event would respond to an idle END condition?

The Windows 7 task scheduler allows me to run a task when the computer goes idle, but there doesn't seem to be any obvious way to run a task when the computer resumes from idle, or is no longer idle. ...
r_alex_hall's user avatar
8 votes
3 answers
30k views

task-scheduler: How can all users view/edit/run the same tasks?

I want all (or selected) users/admins to view/edit/run the same task. It seems that each user/admin only sees his own tasks and not the others users'. This is quite confusing for me since on Linux a ...
tardis's user avatar
  • 194
8 votes
2 answers
3k views

Windows Task automatically wakes my computer, but doesn't put it back to sleep after

My computer wakes itself up every day (presumably to do updates) which is fine by me, but it heats up my room by a considerable amount, and I rather not shut down, especially because it will ...
CHRIS C's user avatar
  • 81
8 votes
1 answer
5k views

Stopping a scheduled task with a batch file action doesn't stop the program running in the batch file

I have several scheduled tasks that each execute a (different) batch file. Each batch file calls into the same program, with with separate command line arguments. If I Stop a task while it's running, ...
Christopher Stevenson's user avatar
7 votes
3 answers
14k views

Scheduled backup of certain directories in Windows 7

I'm using Windows 7 and I need to schedule a daily backup that does the following: The schedule needs to run daily at 7pm The backup needs to generate a compressed archive of selected backup ...
void.pointer's user avatar
  • 1,897
7 votes
2 answers
10k views

Lock Screen after screensaver starts + delay

I would like to have my win7 desktop lock after say 15 minutes of idle time. I also want my screensaver to start at 5 minutes of idle time. I tried using programs that run a command after a certain ...
Spectraljump's user avatar
7 votes
3 answers
9k views

Alternative to Windows Task Scheduler GUI?

OS: Windows 7 64-bit Context: Several recent Windows Updates have added many scheduled tasks about data collecting, performance reporting, blah blah, in preparation for the move to Windows 10. Many ...
Gras Double's user avatar
  • 1,090
7 votes
1 answer
10k views

Task scheduler compatibility?

With what windows versions is a task exported in XML compatible with? For example, is a task created in windows 7 compatible with windows 10 / Windows Server 2003 with Windows Server 2008 and so on? I ...
Opoizz's user avatar
  • 71
6 votes
5 answers
36k views

Windows 7 scheduled task returns 0x2

I have identical scheduled tasks running in Windows XP Pro and Windows 7. The XP Pro one runs fine, the Windows 7 one always returns 0x2 (which means, "The system cannot find the file specified"; ...
demmith's user avatar
  • 61
6 votes
1 answer
77k views

What are the arguments for shutdown.exe in Windows Task Scheduler?

I'm trying to use Windows Task Scheduler to automatically shut down my Windows 7 computer every day at a specific time. While there are a lot of tutorials on how to do this, none of them give a list ...
meed96's user avatar
  • 2,191
6 votes
3 answers
55k views

How can I schedule a time for a song to play in Windows Media Player or iTunes?

How can I launch Windows Media Player or iTunes, playing a song, with the Windows task scheduler. I already know how to create a task and how to trigger it at a given time (launching iTunes / WMP). ...
kite's user avatar
  • 163
6 votes
1 answer
17k views

task scheduler doesn't seem to be running powershell script like it should

I have the following PowerShell script saved as test.ps1: # test script Write-Output "z" >> C:\path\to\log.txt In the Task Schedule I have it set to "Run whether user is logged ...
neubert's user avatar
  • 7,204
6 votes
1 answer
2k views

How to schedule a task with the Task Scheduler on Windows 7 that runs one minute later each day?

How to schedule a task with the Task Scheduler on Windows 7 that runs one minute later each day? That is on day one it runs at say 10:00 then the next day at 10:01, etc.
WilliamKF's user avatar
  • 7,978
6 votes
1 answer
8k views

Windows 7 scheduled task stops working after changing windows password

I have a scheduled task that triggers every hour. It runs as a service, meaning it's marked with "Run whether user is logged on or not". Because of my company's security policy I have to change my ...
Doron Gold's user avatar
6 votes
3 answers
5k views

How to launch a GUI Windows application with administrator rights without asking for the pasword from the user?

The user using the computer logs-in to the Windows 7 Professional system through an Active Directory domain and has no administrative rights. I am the administrator and can give him the rights but, ...
Ivan's user avatar
  • 7,633
6 votes
3 answers
16k views

Windows 10 Task Scheduler error "XML contains a value which is incorrectly formatted"

Since the Windows 10 upgrade any attempt to edit a previously existing task results in a popup error window stating: An error has occurred for task < taskname > The following error was ...
Fred's user avatar
  • 61
5 votes
3 answers
26k views

Task scheduler doesn't work unless I run it manually

I have a scheduled task on my Windows 2008 R2 server which is supposed to run a powershell script to download a backup of a file from another server. On this same server, I have scheduled the exact ...
blizz's user avatar
  • 401
5 votes
1 answer
16k views

schtasks with multiple actions

I am trying to create a schedule task using command line which has multiple actions running more than one batch files in sequence among other things SCHTASKS /Create /TN TaskName /SC ONLOGON /TR C:\...
SeanClt's user avatar
  • 2,237
5 votes
2 answers
174 views

Are startup items, services, and scheduled tasks the only things that run without my explicit involvement?

On a virgin out-of-the-box Windows machine, and before making any Internet connection, if I wish to remove or disable any applications that might run without my explicit consent, is it sufficient to ...
Witness Protection ID 44583292's user avatar
5 votes
2 answers
17k views

Windows 10 - bring background task into foreground

I have a scheduled task that runs an exe in the background. Every once in a while I'm suspicious that the exe isn't running properly but I have no way to see the output since it's hidden and I can ...
Jacksonkr's user avatar
  • 484
5 votes
1 answer
4k 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 ...
Mark Deven's user avatar
  • 1,660
5 votes
3 answers
53k views

Task launch failed, instance already running

I am trying to launch a task from task scheduler. The task is executing a batch file. It is running for the first time but after that it's status is not getting changed from Running to Ready. It is ...
Rajdeep Nandi's user avatar
5 votes
2 answers
7k views

Windows Task scheduler Winlogon events - logout not enough(?)

I created a powershell script that I want to run on every logout / restart / shut down. For trigger I set a custom event: Log: System, Source: Winlogon, Event ID: 7002. I found the above event id ...
Martin Fejes's user avatar
5 votes
3 answers
3k views

Windows 8 "Task Scheduler service is not available"

I'm having problems keeping my Windows 8 clock synced so I'm trying to regularly resync with an every-5-minutes schedule trigger. When I go into the Windows 8 task scheduler through the ...
Jason Kleban's user avatar

1
2 3 4 5
12