Questions tagged [taskscheduler]

Task Scheduler is the common name for a set of tools and services that provide scheduled execution of executables and scripts on the Windows operating system. Use taskschedular tag in conjunction with powershell, winapi, windows-task-scheduler tags when Task Scheduler related.

The Task Scheduler helps scheduling automated tasks that perform actions at a specific time or when a certain event occurs. It maintains a library of all scheduled tasks, providing an organized view of the tasks and a convenient point of access for managing them. There can be run, disabled, modified, and deleted tasks from within the library. The Task Scheduler user interface (UI) is a Microsoft Management Console (mmc) snap-in since Windows Vista and Windows Server 2008.

Useful links

492 questions
1
vote
0 answers

task scheduler on windows throws error "2147942402"

I am trying to schedule a task in windows task scheduler what i want is have to run a url every 5 minutes without opening browser i tried using php -f http://localhost/sms/test.php wget -q -O - http://localhost/sms/test.php > tmp.txt and also the…
1
vote
1 answer

Window task scheduler... run 3 times a day (4 times on a Friday)

I have a batch file I want to execute 3 times a day. Monday to Thursday (9am, 12pm, 3pm) but on Friday I want to execute it (9am, 12pm, 3pm, 5pm). Is there a way to do this with one task in Windows 10? Or will I need a separate task to complete the…
BrendanJB
  • 11
  • 1
  • 4
1
vote
0 answers

Restart Service with admin privileges(Task Scheduler)

I have a batch file which restarts a service. net stop "Spider" net start "Spider" I execute this with admin privileges as "Run as administrator" without problem, but when I try to schedule this with "Task Scheduler" I am getting an error…
talendguy
  • 81
  • 1
  • 9
1
vote
1 answer

Launch vbs script in task scheduler using a batch file

unfortunately I couldn't find a solution that worked for me in other threads. I am trying to run a vb script using task scheduler via a batch file, both the vbs and the bat file work just fine when I start them manually, but not in Task Scheduler. I…
1
vote
1 answer

Batch file to create a trigger to start a task

I have created two task Task1 and Task2 through a .bat file using the command schtasks.exe. I need to create a trigger that will trigger the start of Task2 when Task1 is completed. Where and how do I write the commands for the trigger in the batch…
Ora Aff
  • 640
  • 1
  • 9
  • 24
1
vote
1 answer

quser /SERVER:$computerName | Out-File c:\abc.txt

I am using the above command to get the list of currently logged in users. It works well when I run the powershell script containing this command, but when I run this same script from the task scheduler, it gives the following error: "The term…
1
vote
1 answer

Task Scheduling and Powershell's Start-Job

Currently, I try to run a PowerShell-Script, which starts a few instances with Start-Job -name $jobname -Scriptblock { ... Code ...}; This PowerShell-Script should be executed every 15 minutes in the WIndows Task Schedule. I run this process with…
SUT
  • 323
  • 1
  • 3
  • 14
1
vote
1 answer

vb.net - excel - windows task issue

I built a .net application that saves data to excel. When I run the application manually the program saves stuff from the data table into excel. The problem is that when I schedule a task to run on my Windows 10 PC I get the below error.…
CodeMonger
  • 347
  • 1
  • 4
  • 16
1
vote
1 answer

php script command line execution issue

I have checked all the questions here and googled all available questions on this. However, nothing helped me debug this. I have a php script log.php from which I try to run local functions like updating a database and writing to a file log.txt. I…
1
vote
1 answer

How to refer/ map network drive during Task Scheduler/ bat job without user logged in/ mapping?

I have an unexpected challenge. I have a network drive mapped, let's call it the K: drive. I can also see this drive is \marketing.fakename.blah.com, for example. Anyway I'm trying to run a .bat file and scripts on a remote server via Windows Task…
1
vote
3 answers

Task Scheduler not running repeated tasks

I have created a task to open a website every x minutes. This is what I have. program: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" argument: https://phpfile on my server start in: C:\Program Files…
Sagar
  • 11
  • 1
  • 7
1
vote
0 answers

If the task slots in one executor can be shared by different Spark application tasks?

I have read some literature about Spark task scheduling, and found some paper mentioned that the Executor is monopolized by only one application at every moment. So I wandering about whether the task slots in one executor can be shared by different…
1
vote
0 answers

Is there a GetTriggerString() equivalent in the Windows Task Scheduler 2 interface?

The windows task scheduler interface v1 has a simple to use function: HRESULT IScheduledWorkItem::GetTriggerString(WORD iTrigger, LPWSTR *ppwszTrigger) Does the windows task scheduler interface v2 have something equivalent? TIA!!
user3161924
  • 1,849
  • 18
  • 33
1
vote
0 answers

Run batch file from Windows Task Scheduler regardless of user logged in

I have a batch file which will copy certain folders from an absolute path over as a backup. I currently need to make it so every midnight the batch file will be executed - and that's during the time when no one is on the computer. Currently I've set…
Awesome As
  • 45
  • 1
  • 5
1
vote
1 answer

Update Scheduled Task in Sub Folder (The Specified path is invalid.) PowerShell 4.0

When running the script below I get the following error: Set-ScheduledTask : The specified path is invalid. $Action = New-ScheduledTaskAction -Execute """C:\Program Files\Sync\Sync.exe""" -Argument "C:\ProgramData\Sync\Script.bat" Set-ScheduledTask …
Gareth Doherty
  • 187
  • 1
  • 3
  • 15