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
2
votes
0 answers

Getting error while working with Task Scheduling

When using laravel task scheduling, I receive the following error message: [ErrorException] escapeshellarg() has been disabled for security reasons What is the problem and how can I fix it. In addition, I haven't access to php.ini file. Here is my…
Mehdi Rahimi
  • 1,453
  • 5
  • 20
  • 31
2
votes
1 answer

Running Powershell script from task scheduler when the name of the folder where script is kept has spaces

I have a Powershell script (on Windows Server 2008 R2) which runs successfully from console. When I run it from Task Scheduler it does not enter the script and task completes with a status of 0x1. The account running the script is an…
2
votes
2 answers

Password Encryption inside a batch

I have a windows bat which is called by the Windows task scheduler every 5 mins. In there I am connecting to a network drive, something like this net use G: \hostname\shared mypassword /user:myuserid /persistent:yes it works with no issue, but I…
borna
  • 906
  • 3
  • 12
  • 32
2
votes
1 answer

Single instance WCF service with concurrent tasks (that can be limited)

I am trying to build a WCF service that - Is single instance Allows clients to make multiple request to functions (eg. StartJob) StarJob(request) 'queues' the request to the TaskFactory (one instance) running on Concurrent task schedule…
2
votes
1 answer

xpath event filter not working

I am attempting to create a XPath Event Filter to Execute a scheduled task upon completion of another one. My XPath looks like this
2
votes
0 answers

Log file not being generated while running a script via Windows Task Scheduler

Log file not being generated while running a PowerShell script via Windows Task Scheduler. Code as below: function check-cert { $cmd = "Certutil -crl" Invoke-Expression $cmd if($LASTEXITCODE -eq '0') { Write-Output $LASTEXITCODE } …
user2075017
  • 457
  • 4
  • 11
  • 23
2
votes
1 answer

Assign task to users and user groups

I want to build a small task-application with MYSQL and PHP. I want to assign tasks to single users and to multiple user groups. I was thinking to have a user_table: userid name 1 Peter 2 Hans usergroup_table usergroup_id name 1 …
2
votes
0 answers

Talend Job: Windows Task Scheduler does not insert data

I have created a job in Talend which I want to schedule everyday through Windows Task Schedular on my dedicated machine. I have exported the job and gave the path of executable batch file to Task Scheduler. Now the issue is that when the job…
Jafar Imam
  • 21
  • 2
2
votes
2 answers

Task Scheduler does not run Excel VBA Code to send PDF as Email Attachment

Here is the software/systems I am using: Microsoft Office 2010; Task Scheduler; Windows Server 2008 R2 Standard I am running some VBA code within an Excel file that does the following: 1. Retrieves Data from our Database via SQL/ODBC…
2
votes
0 answers

Windows Task scheduler no longer showing console output for powershell script

I have a powershell script similar to below: $Logfile = "..\Logs\DailyAutomationLogs.txt" Start-Transcript -path $LogFile -append $flags = 0 #Retrieve data powershell.exe -File .\Download1.ps1 if(-Not $?){ $flags += 1 } powershell.exe -File…
Stefan Orr
  • 191
  • 1
  • 11
2
votes
2 answers

Schedule Powershell script to run every hour

Please check this picture as following I was looking at Window task scheduler to schedule my script to run each hour. The script will do some checks and will send an email . I did not find options to schedule it for each 1 hour. I only found for…
RonyA
  • 585
  • 3
  • 11
  • 26
2
votes
2 answers

Scheduling a task with spring

I'm using java Spring framework for my web application and i want to schedule a task to run in the server at particular time. The time is given by user of the application. I looked into TaskScheduler and I found examples…
e11438
  • 864
  • 3
  • 19
  • 33
2
votes
1 answer

how will windows schduler react if i have Console.ReadLine(); inside my console application

I wrote the following as part of my c# console application. currently when i run this inside Visual studio or i run the .exe file manually , the command prompt will show a message, and the user need to click on any key to exist the window. …
2
votes
1 answer

TaskService not working

I'm trying to write some code that uns the task on my local workstation after a certain period of time but at the moment I'm having problems getting the work to be done. Below is the code I am running. using System; using…
Aditya Korti
  • 692
  • 2
  • 12
  • 28
2
votes
2 answers

TaskScheduler with queue and timeout issue

What I'm trying to implement: Task scheduler that enqueues tasks and runs specified amount in parallel, while others wait in queue to get started. Each task has timeout that starts counting when the task runs and if exceeds that time the task is…
Arvigeus
  • 353
  • 3
  • 17