The command: "AT" is on Windows 12, 11, 10, .. , MS Server 2025, 2022, 2019, .. not available
The examples for the command "AT"
Here are the examples of
`AT` command in Windows Command Prompt with detailed comments:
Example 1: View Scheduled Tasks:
AT
This command displays all tasks scheduled on the system, including their schedules and commands. It provides a comprehensive overview of all scheduled tasks.
Example 2: Show scheduled task for a specific ID:
AT1
The planned task with ID 1 is displayed in detail here. You will receive information about the schedule and the command to be executed. This enables targeted checking of specific tasks.
Example 3: Create a new scheduled task:
AT 3:30 p.m. /every:M,T,W,Th,F "notepad.exe"
This command creates a new scheduled task. She opens the text editor Notepad every working day at 3:30 p.m. This illustrates the ability to create tasks with specific schedules and applications.
Example 4: Change scheduled task command:
AT 2 /delete
This command deletes the scheduled task with ID 2. It shows how to remove already created tasks and thus adjust the system scheduling.
Example 5: Save all scheduled tasks to a text file:
AT > PlannedTasks.txt
This command saves all scheduled tasks to a text file called ScheduledTasks.txt. This is helpful to have an overview of all scheduled tasks for future reference.
Example 6: Save specific scheduled tasks to a text file:
AT | FIND "notepad" > NotepadTasks.txt
Only the scheduled tasks that contain the term
"notepad" are saved here. This could be useful for getting specific information about tasks that affect a particular application.
The
`AT` command is used to manage scheduled tasks on a Windows system. Note that using this command may require certain permissions and the syntax may vary depending on the version of Windows.
"AT" Excerpt from Microsoft Windows Help
Microsoft Windows XP [Version 5.1.2600]
(c) Copyright 1985-2001 Microsoft Corp.
C:\\WINDOWS>
The AT command schedules commands and programs to run on a computer at
a specified time and date. The Schedule service must be running to use
the AT command.
AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]]
AT [\\computername] time [/INTERACTIVE]
[ /EVERY:date[,...] | /NEXT:date[,...]] "command"
\\computername Specifies a remote computer. Commands are scheduled on the
local computer if this parameter is omitted.
id Is an identification number assigned to a scheduled
command.
/delete Cancels a scheduled command. If id is omitted, all the
scheduled commands on the computer are canceled.
/yes Used with cancel all jobs command when no further
confirmation is desired.
time Specifies the time when command is to run.
/interactive Allows the job to interact with the desktop of the user
who is logged on at the time the job runs.
/every:date[,...] Runs the command on each specified day(s) of the week or
month. If date is omitted, the current day of the month
is assumed.
/next:date[,...] Runs the specified command on the next occurrence of the
day (for example, next Thursday). If date is omitted, the
current day of the month is assumed.
"command" Is the Windows NT command, or batch program to be run.
Important information, tips for the "AT" command
Yes, there are some important points and considerations that you should keep in mind when using the `AT` command in the Windows Command Prompt:
1. Permissions: Using the `AT` command requires administrative privileges. Make sure you run Command Prompt as an administrator to access all features of the `AT` command.
2. Task Scheduler service status: The `AT` command is highly related to the Windows Task Scheduler service. Make sure the service is enabled and started. You can check this from the "Services" console (`services.msc`) or from the "Task Manager" Services tab.
3. Note syntax: Pay attention to the correct syntax of the `AT` command. The command syntax may vary depending on the version of Windows. You can view help for the `AT` command by typing `AT /?` in the command prompt.
4. Understanding the timing: Understand the timing in the `AT` command. The time is given in 24-hour format, and there are specific parameters for scheduling single tasks or repeated tasks.
5. Consider time zone: Scheduled task scheduling is usually done in the system's time zone. Make sure the time zone is set correctly to avoid unexpected execution times.
6. Commands with administrative privileges: If the scheduled command requires administrative privileges, the task should also be run with administrative privileges. This can be achieved by using `schtasks` or by setting the task option "Run with highest privileges".
7. Logging and error handling: Implement appropriate logging mechanisms to monitor the status and possible errors of the scheduled tasks. This can be done by logging expenses to a file or using email notifications.
These considerations help ensure that scheduled tasks perform reliably and as expected. Note that the above points may apply to specific versions of Windows and it is advisable to consult the documentation for your specific version of Windows.