Launching a Scheduled Task Manually Using Schtasks.exe
June 17th, 2008 • Filed Under • by Ramesh Srinivasan
Schtasks.exe console tool helps you create, delete, query, change, run, and end scheduled tasks on a local or remote computer. Running Schtasks.exe without arguments displays the list of each registered task, the Next Run Time and the Status for each task.
To launch a Scheduled Task item manually, open a Command Prompt window and type:
SCHTASKS.EXE /RUN /TN "task name"
Replace the text <task name> with the actual name of the task.

If the task name is Sync Files, run the following command:
SCHTASKS.EXE /RUN /TN "Sync Files"
The Schtasks.exe can also take remote computer name as a parameter.
schtasks /Run [/S system [/U username [/P [password]]]] /TN taskname
| /S | system | Specifies the remote computer to connect to. If omitted, the system parameter defaults to the local computer. |
| /U | username | Specifies the user context under which Schtasks.exe should run. |
| /P | password | Specifies the password for the given user context. If omitted, Schtasks.exe prompts the user for input. |
| /TN | taskname | Specifies the name of the scheduled task to run. |
| /? | Help for Schtasks.exe | Displays Help for Schtasks.exe. |
For other uses of Schtasks.exe, see Schtasks.exe documentation at the MSDN site.
Copyright © 2008 Ramesh Srinivasan. All rights reserved.
RELATED POSTS
- How to Run Programs Elevated Without Getting the UAC Prompt
- Fix for Windows Has Blocked Some Startup Programs Error in Vista
- Optimize the Windows XP/Vista Registry Regularly Using NTREGOPT
- Fix for Error 0×80070005 When Creating a Task Using Task Scheduler in Windows XP
- How to Automatically Login to Windows and Then Lock the Workstation
- How to Terminate and Restart Explorer.exe Process Cleanly in Windows Vista
- Fix for Disk Defragmenter GUI Not Opening in Windows Vista
- Sysinternals Desktops - Organize Your Applications on Up to Four Virtual Desktops
- Task Scheduler Service Properties Are Grayed Out in Windows Vista
- How to Start Vista Task Manager in Elevated Mode by Default


Like this site? Make sure you