Windows Server 2008 Scheduled Tasks not running – 0x80041323 – Reduce Number of tasks running in the specified context

scheduled-taskwindows-server-2008

I am getting the following problem on a number of windows 2008 servers.

0x80041323 Task Scheduler failed to start task \Reporting" in
TaskEngine "S-1-5-18:NT AUTHORITY\System:Service:" for user "NT
AUTHORITY\System". User Action: Reduce the number of tasks running in
the specified user context.

I've done lots of research around the web but have been unable to come up with a working answer.

I have found some information suggesting increasing a value in the registry key "TasksInMemoryQueue" which I have done, but even setting this as high as 500 has not helped. I have rebooted the server after setting this value.

The server does run a high volume of Scheduled tasks, there could be 150 or so running at any one time, but certainly not 500.
The scheduled tasks are all running under the system user.

Does anyone have any ideas?

Best Answer

try this as linked here http://technet.microsoft.com/en-us/library/dd315645(WS.10).aspx

Resolve

Increase queue size

Increase the task queue quota by modifying the TasksInMemoryQueue registry key under HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Schedule\Configuration.

Caution: Incorrectly editing the registry can corrupt the system. Back up valued data before making changes to the registry.

To perform this procedure, you must have membership in the Administrators group, or you must have been delegated the appropriate authority.

To modify the TasksInMemoryQueue registry key:

  1. Click the Start button and type regedit in the Start Search box.

  2. Select the Regedit.exe program to start the Registry Editor.

  3. Expand the folders in this path: HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Schedule\Configuration.

  4. Click the Configuration node, right-click the TasksInMemoryQueue registry key, and select Modify.

  5. Change the value of the key and click OK. The default value is 64.

Verify

To verify that the task execution has completed successfully:

  1. Click the Start button and type Task Scheduler in the Start Search box.

  2. Select the Task Scheduler program to start Task Scheduler.

  3. Select the task to run by locating the task in the task folder hierarchy.

  4. On the Actions menu click Run. You can also click Run in the Actions pane.

  5. Click the History tab for the task to verify that it contains events indicating the task was registered successfully.

Related Management Information