How to start Windows Scheduler on the command line?

I want to open the integrated Windows GUI from the command line, and not start using the Schtasks program

+42
command-line windows scheduler
Dec 28 '08 at 11:27
source share
10 answers

It appears that "taskschd.msc" is only available in Vista.

http://technet.microsoft.com/en-us/library/cc721871.aspx

I could have sworn I saw a small graphical task scheduler that you talked about before Vista, but maybe I was thinking of the Add Scheduled Task wizard.

You may have to agree to open the Scheduled Task Explorer using this command:

control schedtasks 

I could not find a way to start the Add Scheduled Task wizard from the command line, unfortunately (there must be a way!)

+39
Mar 12 '09 at 4:52
source share

I am using Windows 2003 on a server. I am in action with "SCHTASKS.EXE"

  SCHTASKS /parameter [arguments] Description: Enables an administrator to create, delete, query, change, run and end scheduled tasks on a local or remote system. Replaces AT.exe. Parameter List: /Create Creates a new scheduled task. /Delete Deletes the scheduled task(s). /Query Displays all scheduled tasks. /Change Changes the properties of scheduled task. /Run Runs the scheduled task immediately. /End Stops the currently running scheduled task. /? Displays this help message. Examples: SCHTASKS SCHTASKS /? SCHTASKS /Run /? SCHTASKS /End /? SCHTASKS /Create /? SCHTASKS /Delete /? SCHTASKS /Query /? SCHTASKS /Change /? ┌─────────────────────────────────────┐ │ Executed Wed 02/29/2012 10:48:36.65 │ └─────────────────────────────────────┘ 

It is quite interesting and makes me feel so strong. :)

+31
Feb 29 2018-12-12T00:
source share

Launches the MMC "Scheduled Tasks" control panel:

 %SystemRoot%\system32\taskschd.msc /s 

Older versions of windows had a splash screen for the MMC control panel, and the / s switch suppressed it. It is not necessary, but it will not hurt.

+12
Dec 28 '08 at 12:36
source share

Yes, a graphical interface is available in XP. I can get a list of scheduled tasks (but not a GUI) to open the following command:

 control.exe schedtasks 

Then you can use the wizard to add a new scheduled task, for example.

In XP, you can find the scheduler GUI from Windows Help, if you search for "Scheduled Tasks", then click on "Step-by-Step Instructions" and open the scheduler GUI. When clicking on the last link, the following command is executed, which can probably be translated to open the scheduler GUI from the command line. Does anyone know how?

 ms-its:C:\WINDOWS\Help\mstask.chm::/EXEC=,control.exe, schedtasks CHM=ntshared.chm FILE=alt_url_windows_component.htm 
+7
Feb 25 '10 at 2:36 p.m.
source share

Here is an example I just used:

 at 8am /EVERY:M,T,W,Th,F,S,Su cmd /cc:\myapp.exe 

The result is:

 Added a new job with job ID = 1 

Then, to check my work:

 at 
+6
May 21 '12 at 17:16
source share

Perhaps you should take a look at the simple "at" command line scheduler:




 C:\Documents and Settings\mahendra.patil>at/? 

The AT team plans commands and programs to run on the computer at the 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" 

\ computer_name Specifies the remote computer. Commands are scheduled on the local computer if this parameter is omitted.

id The identification number assigned to the scheduled command.

/ delete Cancels a scheduled command. If id is omitted, all scheduled commands on the computer are canceled.

/ yes Used to cancel all job commands, if not, confirmation is required.

time Indicates the time the command started.

/ interactive Allows the job to interact with the desktop of the user who is logged in during the job.

/ each: date [, ...] Runs the command on each specified day (week) of the week or month. If the date is omitted, the current day of the month is assumed to be

/ next: date [, ...] Runs the specified command the next day it is entered (for example, next Thursday). If the date is omitted, the current day of the month is assumed.

"command" Whether a Windows NT command or a batch program is running.

+5
Dec 28 '08 at 12:07
source share

You can create a new shortcut for:

 control schedtasks 

Call it something simple like "tsks.lnk" and then save it in c: \ windows \ system32.

Now you can press Windows Key + R , then type "tsks" and press Enter and voila. No mouse is needed at this point.
Or in Windows Vista / 7/2008, just press Windows Key , then type "tsks" and press Enter .

+4
Feb 06 2018-12-12T00:
source share

I also run XP SP2, and this works fine (from the command line ...):

 start control schedtasks 
+3
May 10 '11 at 15:51
source share

You can use either TASKSCHD.MSC or CONTROL SCHEDTASKS

Here are a few more of these commands.

+2
Jul 19 '11 at 12:51 on
source share

If you ask what I think, you ask, you can open it by doing this:

 explorer.exe "C:\WINDOWS\Tasks\" 
-3
May 25 '12 at 20:30
source share



All Articles