Why does my Task Scheduler task fail with error 2147942667?

To get the relevant error message:

  1. Convert 2147942667 to hex: 8007010B
  2. Take last 4 digits (010B) and convert to decimal: 267
  3. In a Command Prompt, run net helpmsg 267
  4. Result: “The directory name is invalid.”

Command Prompt Window

The solution for me was that I had quotes in the “Start In” field. I found this information in Microsoft KB Article 2452723, Windows Vista onward scheduled tasks fail to run if the path in “Start in (Optional)” field has quotes.

Basically, edit your scheduled task and take the quotes out of the “Start In” field:

  1. Open your Scheduled Task
  2. Switch to “Actions” tab
  3. Open your Action
  4. Remove Quotes (“) from the field “Start in (optional)”
  5. Save and close all open dialogs

Edit Action Dialog Box

You should also check for other causes of the error, like not having permission to access the directory, or using a mapped drive letter which is only available during certain login sessions.

Leave a Comment