Subscribe to Windows IT Pro
May 13, 2002 12:00 AM

How can I use Windows XP's schtasks.exe tool under Windows 2000?

Windows IT Pro
InstantDoc ID #25186
Rating: (12)

The XP schtasks.exe command-line tool is great for managing scheduled tasks. Win2K doesn't have an equivalent command-line tool. If you attempt to run schtasks.exe on a Win2K machine, you'll receive an error message indicating that you're using the incorrect OS version. You can modify schtasks.exe to work under Win2K by performing the following steps.

  1. Open schtasks.exe in a hexadecimal editor such as BreakPoint Software's Hex Workshop 3.1.
  2. Find code location CB2A, and change the hex value 75 to EB. If you're using Windows XP Service Pack 1 (SP1), the code location is 0x0000CC50 (not CB2A); if you're using XP SP2, the location is 0x0000E3F8. Updated 12-5-08: If you're using XP SP3, the location is 0x0000E391.
  3. Save the file and exit the editor.

 

For cosmetic purposes, you can use Visual C++ or a resource editor such as Angus Johnson's Resource Hacker to change the error message

ERROR: The Target system must be running Windows XP or above.

to

ERROR: The Target system must be running Windows 2000 or above.

This error message is located in String Table 344.

Thanks to John Eccles for this information.

Related Content:

ARTICLE TOOLS

Comments
  • Anonymous User
    7 years ago
    Jul 04, 2005

    Tried on schtasks v5.1.2600.2180, address was e3f7 and works well. thx!

  • Anonymous User
    7 years ago
    Jun 27, 2005

    Thx it works perfectly ;->

  • Anonymous User
    7 years ago
    May 12, 2005

    nice work with the VB code, worked a treat!

    wonder why they don't want us to run it on 2K...

  • Anonymous User
    7 years ago
    May 10, 2005

    Any ideas on how to make the same thing work for the Win2003 SP1 version of schtasks?

  • Anonymous User
    7 years ago
    Mar 25, 2005

    works well, thx a lot!

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.