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

PowerShell Script with Clixml and Taskscheduler

Here's the problem: When I run my PowerShell script manually, everything works fine. But it doesn't work via task scheduling. The reason is probably my stored credentials for Active Directory and Mobile Device Management.I stored them with…
1
vote
1 answer

PowerShell script does not run from TaskScheduler

I have a script that pulls some information from AD, inserts rows into a temp table, then calls a SQL script that transforms and upserts rows into a crosswalk table. The script runs fine in ISE, but fails when running in TaskScheduler, whether…
Tom Repetti
  • 39
  • 2
  • 8
1
vote
1 answer

Windows task scheduler last run result 0xff

I want to run php script through windows task scheduler. Following is the content of .bat file - cd C:\test_folder "C:\Program Files (x86)\PHP\v5.6\php.exe" -f test.php This .bat file executes successfully if I run it manually but fails in task…
1
vote
2 answers

Batch file using WMIC not working correctly with TaskScheduler (but working fine from command line!)

I decided to write a small batchfile to make daily copies of a folder and its contents. I used WMIC to properly format the date in order to name the folders automatically. While it works perfectly on the command line, it seems that it dislikes being…
Strelok
  • 189
  • 9
1
vote
0 answers

Powershell script won't run as system when logged out, but works fine as user logged on

I have a PowerShell script to convert a .xls file to .txt file. It runs fine in PowerShell and as a scheduled task when "run only when the user logged on" is checked as my user account, but if I try the system and run whether logged on or not, it…
serulin
  • 11
  • 2
1
vote
1 answer

What is the cause for Error HRESULT: 0x800A03EC?

I am getting an Error: "FileReader; Exception from HRESULT: 0x800A03EC" when I run my console application through task scheduler. But I don't get any error when I run it manually. I am not sure if this is an access issue or programming issue.…
1
vote
1 answer

How to pass taskscheduler correlation id to c# arguments program

I have a C# console application, which is triggered on Windows Task Scheduler periodically, but I need to get the "Correlation ID" of process started and pass to my app by argument, like the code below: class Program { static void Main(string[]…
1
vote
1 answer

How to schedule a task for non admin users?

We are currently using TaskService to schedule a task. We use the default folder: TaskScheduler scheduler = new TaskScheduler(); scheduler.Connect(); ITaskFolder rootFolder = scheduler.GetFolder(""); which turns out to…
Felix
  • 3,783
  • 5
  • 34
  • 53
1
vote
2 answers

PowerShell Test-Path UNC Access Denied only via Scheduled Task

PowerShell 3 Windows 2012 Major Minor Build Revision 3 0 -1 -1 I have a few PowerShell scripts that were working for the last few years. Now they can't seem to run successfully via a Scheduled Task. If I manually run the…
Gemini
  • 109
  • 2
  • 15
1
vote
1 answer

Selecting multiple months for a MonthlyTrigger using css

I have the need to create scheduled windows tasks using a C# app. I have a comma separated string that stores the months I'd like to run the task on. The string contains the short values for the type MonthsOfYear - eg. "1,2,4,16,128,1024". The…
ITGuy
  • 13
  • 2
1
vote
1 answer

Inno Setup change an existing Windows Scheduled Task to run when on battery power

By default Windows Scheduled Tasks are created with the 'Start the task only if the computer is on AC power' setting enabled. It is not possible to change this setting using schtasks.exe, which would have been the simple solution. However, it…
1
vote
0 answers

Task Scheduler in Windows not working for laravel

Laravel application is hosted in windows server, hence created a task using Task Scheduler which runs every 1 minute. Task is used to run a program which is saved in a file named cron.bat, of which the contents are cd…
linktoahref
  • 7,812
  • 3
  • 29
  • 51
1
vote
0 answers

Disconnecting OpenFiles

I've been researching and learning about windows batch files, PowerShell and cmd these past few days. We're having issues with Open Files, so we manually go to the server and do it with a press of a button. But since there might be a possible way to…
CK9
  • 11
  • 2
1
vote
1 answer

Run scheduled task from VBScript

How to run scheduled task inside .vbs script? It's not about how to schedule .vbs script inside Task Scheduler. But I have a task that I want to run by running this one .vbs script.
1
vote
1 answer

How to schedule set of task with common run date in Windows Task Scheduler

I have 4 jobs that extract some data from a source to be triggered sequentially at around 10 PM daily. The date to be used on all these jobs are same. Currently, the run_date is being passed using a system_date function in each of these jobs. All…
KPK
  • 11
  • 2