The Schtask command may be unable to create a task in Windows Server 2003 or in Windows XP Professional x64 Edition

Article translations Article translations
Article ID: 960608 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

When you try to run the Schtasks /create command to create a task in Windows Server 2003 or in Windows XP Professional x64 Edition, you may receive the following error message:
ERROR: The creation of the scheduled task failed.
Reason: The Task Name may not contain the characters: <, >, :, /, \,|.
However, the task name that you specify has no invalid characters.

CAUSE

The Schtasks command verifies the task name by comparing the task name with an invalid character set. If the task name contains one or more characters from the invalid character set, the Schtasks command denies the task creation request.

However, in race conditions, the invalid character set may contain a valid character. Therefore, the Schtasks command cannot create some tasks even if the task names contain only valid characters.

RESOLUTION

Hotfix for Windows Server 2003

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

To apply this hotfix, you must be running Windows Server 2003 R2 on the computer.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Windows Server 2003 with Service Pack 1, x86-based versions
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Sctasks.exe5.2.3790.3253158,72024-Nov-200813:41x86
Windows Server 2003 with Service Pack 1, x64-based versions
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Sctasks.exe5.2.3790.3253208,38428-Nov-200801:51x64SP1Not Applicable
Wsctasks.exe5.2.3790.3253158,72028-Nov-200801:51x86SP1WOW
Windows Server 2003 with Service Pack 1, Itanium-based versions
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Sctasks.exe5.2.3790.3253356,86428-Nov-200801:51IA-64SP1Not Applicable
Wsctasks.exe5.2.3790.3253158,72028-Nov-200801:51x86SP1WOW
Windows Server 2003 with Service Pack 2, x86-based versions
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Sctasks.exe5.2.3790.4418158,72026-Nov-200811:24x86
Windows Server 2003 with Service Pack 2, x64-based versions
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Sctasks.exe5.2.3790.4418208,38428-Nov-200801:58x64SP2Not Applicable
Wsctasks.exe5.2.3790.4418158,72028-Nov-200801:58x86SP2WOW
Windows Server 2003 with Service Pack 2, Itanium-based versions
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Sctasks.exe5.2.3790.4418356,86428-Nov-200801:55IA-64SP2Not Applicable
Wsctasks.exe5.2.3790.4418158,72028-Nov-200801:55x86SP2WOW

Hotfix for Windows XP Professional x64 Edition

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

To apply this hotfix, you must be running Windows XP Professional x64 Edition on the computer.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Windows XP Professional x64 Edition
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Sctasks.exe5.2.3790.3253208,38428-Nov-200801:51x64SP1Not Applicable
Wsctasks.exe5.2.3790.3253158,72028-Nov-200801:51x86SP1WOW
Windows XP Professional x64 Edition with Service Pack 2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Sctasks.exe5.2.3790.4418208,38428-Nov-200801:58x64SP2Not Applicable
Wsctasks.exe5.2.3790.4418158,72028-Nov-200801:58x86SP2WOW

WORKAROUND

To work around the issue, use the AT command to create tasks. For more information about the AT command, visit the following Microsoft Web site:
http://technet.microsoft.com/en-us/library/bb490866.aspx

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base: -
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 960608 - Last Review: October 8, 2011 - Revision: 2.0
APPLIES TO
  • Microsoft Windows Server 2003, Web Edition
  • Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
  • Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems
  • Microsoft Windows Server 2003, Datacenter x64 Edition
  • Microsoft Windows Server 2003, Enterprise x64 Edition
  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems
  • Microsoft Windows Server 2003, Standard x64 Edition
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • Microsoft Windows XP Professional x64 Edition
Keywords: 
kbexpertiseadvanced kbfix kbautohotfix kbsurveynew kbqfe KB960608

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com