Questions tagged [windows-task-scheduler]

Use for questions about programmatic modification of task scheduling on any version of the Windows OS.

The MS Windows system scheduler component manages the execution time (time slices) that competing processes & threads are given on available processor cores.

Tag usage

The task is for questions about programmatic modification of task scheduling on any version of the Windows OS. You should also tag questions with their specific Windows version, where relevant.

Related tags

References

Microsoft documentation is the primary source for documentation about Windows Scheduling. You may refer the following topics for more information:

845 questions
1
vote
2 answers

Loading a Service before other Services

I have a network critical Windows 7 service. It must start before any network related service on the system, or that network service may fail. My service requires that Winsock is fully initialized by the time it runs. How can I coerce Windows to…
unixman83
  • 9,421
  • 10
  • 68
  • 102
1
vote
1 answer

I cant get powershell to run in task scheduler

I am trying to run the following Powershell script via the Task Scheduler but although it gives me a successful run (0x0), nothing happens. If I run the script manually from the same machine as a standard user the script executes without any…
Eos
  • 27
  • 1
  • 5
1
vote
0 answers

Windows Task Scheduler is not working on Cluster through powershell

I have configured the windows task scheduler with any node type using powershell commands in the cluster as Active/Passive. If one system goes down, the task scheduler is switching to another node and runs from that node when schedule time…
1
vote
1 answer

Notifications through Task Scheduler in Laravel

I am trying to make my task appear on the notifications part. I have set the task scheduler already (Windows 10) and I have this function inside a class: public static function forecastModal($store_id = NULL) { $inventory_forecasts =…
Matthew
  • 11
  • 2
1
vote
2 answers

Need to XPath Filter for Specific USB Key in Event Log

I am trying to make my device shutdown whenever i take out my Win 10 BitLocker USB Startup Key (TSK). I have enabled the DriverFrameworks-UserMode/Operational Logging to generate the appropriate logs in which I want to grab the InstanceID of the…
1
vote
0 answers

Which command line command do I have to enter to get a scheduled task with certain parameters? (Batch/CMD)

With the following command I want to create a scheduled task to devmgmt.msc: SCHTASKS /Create /TN "devmgmt-task" /sc once /st 00:00 /TR C:\Windows\system32\devmgmt.msc /RU %username% /RL HIGHEST As a parameter (parameter field) in the Windows task…
1
vote
1 answer

Help with using schtasks, defining a specific time

I have successfully created a task, although I am having trouble defining when it should occur e.g. using the /MO command. How is it possible to tell schtasks to execute this on e.g. every 5 days on the 4th hour of that day? schtasks.exe /Create /SC…
James
  • 79
  • 1
  • 1
  • 3
1
vote
2 answers

Why does schtasks not recognize XML syntax?

I am trying to import a scheduled task XML into the Windows Task Scheduler by executing schtasks from Java. Before my program runs the schtasks command, it inserts a file path in the element. The task scheduler command works before I edit…
Cardinal System
  • 2,749
  • 3
  • 21
  • 42
1
vote
1 answer

Modify Scheduled task without password

I am trying to create a bat file which when double clicked will create a task in task scheduler from xml file. I need to modify the target location dynamically since the one given in the xml will be different. So i wrote two commants, first one for…
anandhu
  • 686
  • 2
  • 13
  • 40
1
vote
1 answer

How To See Which One .bat file running on task scheduler

i have one task scheduler with 2 .bat file on action. List .bat file on action tab when task scheduler running how to i know which one .bat is running ? this is xml file task scheduler:
1
vote
2 answers

Windows 10 Task Scheduler tasks don't even try to run

I am trying to get a task in windows scheduler to run every 10 mins. In the following image there are two blue lines, this is only one task but I have screenshot them at different times after refreshing the page. As you can see in the image Task…
1
vote
1 answer

Modifying triggers of tasks with highest privileges using PowerShell

I have a PowerShell script which reads a csv file of job names & triggers and then update the triggers of jobs on Task Scheduler by using Set-ScheduledTask cmdlet. I am able to update the triggers of the jobs. but few tasks are running with Highest…
1
vote
2 answers

Show hidden Excel instance that is started by windows scheduler

I have some windows tasks that are scheduled every day for a specific time. Those tasks have the action to open an excel workbook, which includes some vba (create reports and send via mail) that is running on workbook_open and closes automatically…
guy
  • 13
  • 5
1
vote
1 answer

Don't know how to run a Function at a specific time

I tried to learn more but sadly I can't understand how it works with the Windows Task Scheduler, so I tried something simple, but it still doesn't work. I want this function to run every day except the weekends. Here is my code: Sub…
1
vote
0 answers

7Zip Compressing Very Slow by Batch and Task Scheduler

I am compressing folders by 7Zip and deleting original folder with Batch and Task Scheduler. Folders and their inside files are continuously downloading and creating new folders as well. I want to save my disc space so that I make a Batch file and…
Iftek Har
  • 161
  • 3
  • 5
  • 13