O'Reilly logo

Windows Server 2003 in a Nutshell by Mitch Tulloch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

at

Synopsis

Schedules tasks (commands or programs) to run on a computer at a specified time/date and manages scheduled tasks.

Note

Note that in WS2003 the schtasks command replaces the at command for managing and scheduling tasks from the command line (the at command is maintained only for backward compatibility with W2K/NT). See schtasks in this chapter for more info.

Syntax

at [\\computername] [ [id] [/delete] | [/yes] ]
at [\\computername] time [/interactive] [/every:date[,...] | 
/next:date[,...] ] command

Options

None

Displays scheduled jobs.

\\computername

Specifies the name of the remote computer on which the job is run. (If omitted, the job executes on the local computer.)

id

Is the identification number assigned to the scheduled job.

/delete

Removes a job from the list of scheduled jobs. (If id is omitted, all scheduled jobs on the specified computer are canceled.)

/yes

Executes the scheduled job without prompting for confirmation.

time

Specifies when the command is to run (syntax is hours:minutes in 24-hour notation).

/interactive

Lets the scheduled job interact with the desktop of the user logged on when the job runs.

/every:date[,...]

Runs the job on specified day(s) of the week or month. Use M,T,W,Th,F,S,Su for days or the numbers 1 through 31 for dates, and separate them with commas. (If omitted, the current date is used.)

/next:date[,...]

Runs the job on the next occurrence of the specified day or date.

command

Is the command, program (.exe or .com file), or batch file (.bat or .cmd file) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required