Launching a Scheduled Task manually using Schtasks.exe

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
/SsystemSpecifies the remote computer to connect to. If omitted, the system parameter defaults to the local computer.
/UusernameSpecifies the user context under which Schtasks.exe should run.
/PpasswordSpecifies the password for the given user context. If omitted, Schtasks.exe prompts the user for input.
/TNtasknameSpecifies the name of the scheduled task to run.
/?Help for Schtasks.exeDisplays Help for Schtasks.exe.

For other uses of Schtasks.exe, see Schtasks.exe documentation at the MSDN site.

About the author

Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and has a vast experience in the ITeS industry — delivering support for Microsoft's consumer products. He has been a Microsoft MVP [2003 to 2012] who contributes to various Windows support forums.