CmdID

CmdID / Commands / schtasks

schtasks query

Lists all the tasks scheduled to run on the computer. Windows commands reference

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

Lists all the tasks scheduled to run on the computer. Syntax

To list all tasks scheduled for the local computer, type

schtasks schtasks /queryIdentify

To request a detailed display of the tasks on the local computer,type

schtasks /query /fo LIST /vIdentify
/queryOptionally, specifies the name of the operation. Windows commands reference
/foSpecifies the output format. Windows commands reference
/vAdds the advanced properties of the task to the display. Windows commands reference

To request a list of tasks scheduled for a remote computer and to add the tasks to a comma-separated log file on the local computer, type

schtasks /query /s Reskit16 /fo csv /nh >> \\svr01\data\tasklogs\p0102.csvIdentify
/queryOptionally, specifies the name of the operation. Windows commands reference
/sSpecifies the name or IP address of a remote computer (with or without backslashes). Windows commands reference
/foSpecifies the output format. Windows commands reference
/nhRemoves column headings from the table display. Windows commands reference

To get information for the Office Subscription Maintenance task using the /tn parameter, which can also be viewed via Task Scheduler in the location *\\Microsoft\\Office\\* with the root directory "\\" seen under the Task Scheduler Library folder, type

schtasks /query /tn "\Microsoft\Office\Office Subscription Maintenance"Identify
/queryOptionally, specifies the name of the operation. Windows commands reference
/tnQueries a specific task by path and name. Windows commands reference