Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


[Question] Where is the data for a "Scheduled Tasks" stored?

- - - - -

  • Please log in to reply
3 replies to this topic




  • Member
  • Pip
  • 91 posts
  • Joined 15-October 04
When creating a Scheduled Task in Windows XP/2003 Where is the data for that task actualy stored? What I am after is to create a scheduled task under XP/2003 and export that data to a file and import onto/into a new xp/2003 machine?

Anyone know?



Title edited -- Please, use [TAGS] in your topic's title.
Please follow XP Forum Rules from now on.

How to remove advertisement from MSFN



    Advanced Member

  • Member
  • PipPipPip
  • 371 posts
  • Joined 02-June 05
  • OS:Windows 7 x86
  • Country: Country Flag




    MSFN Master

  • Patrons
  • 2,086 posts
  • Joined 15-September 04
  • OS:Windows 7 x64
  • Country: Country Flag
You may also want to look into the SCHTASKS command line tool built into both Windows XP and Server 2003. You can tell your tasks to run as NT AUTHORITY\SYSTEM using this utility.

C:\>schtasks /create /?

SCHTASKS /Create [/S system [/U username [/P password]]]
	[/RU username [/RP password]] /SC schedule [/MO modifier] [/D day]
	[/I idletime] /TN taskname /TR taskrun [/ST starttime] [/M months]
	[/SD startdate] [/ED enddate]

	Enables an administrator to create scheduled tasks on a local or
	remote systems.

Parameter List:
	/S		   system			Specifies the remote system to
								   connect to. If omitted the system
								   parameter defaults to the local

	/U		   username		  Specifies the user context under
								   which the command should execute.

	/P		   password		  Specifies the password for the given
								   user context.

	/RU		  username		  Specifies the user account (user
								   context) under which the task runs.
								   For the system account, valid values
								   are "", "NT AUTHORITY\SYSTEM" or

	/RP		  password		  Specifies the password for the user.
								   To prompt for the password, the value
								   must be either "*" or none.
								   Password will not effect for the
								   system account.

	/SC		  schedule		  Specifies the schedule frequency.
								   Valid schedule types: MINUTE, HOURLY,

	/MO		  modifier		  Refines the schedule type to allow
								   finer control over schedule
								   recurrence. Valid values are listed
								   in the "Modifiers" section below.

	/D		   days			  Specifies the day of the week to run
								   the task. Valid values: MON, TUE,
								   WED, THU, FRI, SAT, SUN and for
								   MONTHLY schedules 1 - 31 (days of the

	/M		   months			Specifies month(s) of the year.
								   Defaults to the first day of the
								   month. Valid values: JAN, FEB, MAR,
								   APR, MAY, JUN, JUL, AUG, SEP, OCT,
								   NOV, DEC.

	/I		   idletime		  Specifies the amount of idle time to
								   wait before running a scheduled
								   ONIDLE task.
								   Valid range: 1 - 999 minutes.

	/TN		  taskname		  Specifies a name which uniquely
								   identifies this scheduled task.

	/TR		  taskrun		   Specifies the path and file name of
								   the program to be run by this
								   scheduled task.
								   Example: C:\windows\system32\calc.exe

	/ST		  starttime		 Specifies the time to run the task.
								   The time format is HH:MM:SS (24 hour
								   time) for example, 14:30:00 for
								   2:30 PM.

	/SD		  startdate		 Specifies the first date on which the
								   task runs. The format is

	/ED		  enddate		   Specifies the last date when the task
								   should run. The format is

	/?							 Displays this help/usage.

Modifiers: Valid values for the /MO switch per schedule type:
	MINUTE:  1 - 1439 minutes.
	HOURLY:  1 - 23 hours.
	DAILY:   1 - 365 days.
	WEEKLY:  weeks 1 - 52.
	ONCE:	No modifiers.
	ONSTART: No modifiers.
	ONLOGON: No modifiers.
	ONIDLE:  No modifiers.
	MONTHLY: 1 - 12, or

	SCHTASKS /Create /S system /U user /P password /RU runasuser
			 /RP runaspassword /SC HOURLY /TN rtest1 /TR notepad
	SCHTASKS /Create /S system /U domain\user /P password /SC MINUTE
			 /MO 5 /TN rtest2 /TR calc.exe /ST 12:00:00
			 /SD 10/20/2001 /ED 10/20/2001 /RU runasuser /RP
	SCHTASKS /Create /SC MONTHLY /MO first /D SUN /TN game
			 /TR c:\windows\system32\freecell
	SCHTASKS /Create /S system /U user /P password /RU runasuser
			 /RP runaspassword /SC WEEKLY /TN test1 /TR notepad.exe
	SCHTASKS /Create /S system /U domain\user /P password /SC MINUTE
			 /MO 5 /TN test2 /TR c:\windows\system32\notepad.exe
			 /ST 18:30:00 /RU runasuser /RP *
	SCHTASKS /Create /SC MONTHLY /MO first /D SUN /TN cell
			 /TR c:\windows\system32\freecell /RU runasuser




  • Member
  • PipPip
  • 136 posts
  • Joined 18-February 05
Stupid question....
You don't need to be logged into the PC to have the scheduled task execute correct? You only need to have the PC on?

I have several scheduled task but one requires a reboot and then an hour later the next one starts. I don't need to be logged in as long as I specify a correct username and password for the task to run as correct.

I am also going to take a look that schtasks command.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users