At command in Windows Server 2008
In this article I will discuss about how to use At command in Windows Server 2008.
At command applies to Windows 7, Windows XP, Windows Vista, also on some older versions of Windows.
At command is use to schedule the command and a program to run at particular date and time. This command will work only when schedule service is running and user is logged on the local administrator group. This command can also be use to see existing scheduled tasks To use at command syntax is given below:
at \\computername id /delete|/delete/yes
at\\computername time/interactive|/every: date,.../next: date,...command
- time should be in Hours:Minutes format.
| List of Parameters
|| This parameter specifies the remote computer on which at schedules the commands and programs Without this parameter at schedules the commands and programs on local computer
||specifies the id number assigned to a scheduled task
||this parameter is used to cancel the scheduled task.
||/yes command answers yes to all the queries when you cancels scheduled task.
||this command allows task to interact with the user's desktop who is logged on at the time when command execute.
||this command is use to run a command on every specified day or a month or in another words at regular interval of day or month. If you remove this parameter task will run on current day.
||this command is use to run the task on next appearance of the day. You can use more than one days of a. week or a month. Use comma(,) to seperate multiple entries
||Specifies the Windows command, program (that is, .exe or .com file), or batch program (that is, .bat or .cmd file) that you want to run
||specifies the time of task i:e when you want to run the command. Time is expressed as Hours:Minutes
- To use at, you must be a member of the local Administrators group.
- using delete command if you remove id, all of the scheduled tasks on the computer are canceled.
Examples of At command
1. Schedule the chkdsk command to run on current day, at 10:00 am, on the currently used computer.
2. To cancel all scheduled tasks
Got a programming related question? You may want to post your question here