Filter list of scheduled tasks by taskname

xbonez picture xbonez · Oct 27, 2010 · Viewed 28.5k times · Source

running the cmd command

schtasks /query /fo LIST

Gives me a list of all scheduled tasks running on my system. Example:

HostName:      CHESTNUT105B
TaskName:      Calculator
Next Run Time: 12:00:00, 10/28/2010
Status:        Running

HostName:      CHESTNUT105B
TaskName:      GoogleUpdateTaskMachineCore
Next Run Time: At logon time
Status:

HostName:      CHESTNUT105B
TaskName:      GoogleUpdateTaskMachineCore
Next Run Time: 13:02:00, 10/28/2010
Status:

HostName:      CHESTNUT105B
TaskName:      GoogleUpdateTaskMachineUA
Next Run Time: 17:02:00, 10/27/2010
Status:

How can I filter the list so it only shows me the details of the task 'Calculator' ?

the \tn argument gives me an error Invalid Argument / Option

Answer

refaim picture refaim · Oct 13, 2011

Use / instead of \. This works just fine.

schtasks /query /fo LIST /tn Calculator