按任务名称过滤计划任务列表
运行 cmd 命令
schtasks /query /fo LIST
为我提供系统上运行的所有计划任务的列表。示例:
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:
如何过滤列表,使其仅显示任务“计算器”的详细信息?
\tn 参数给我一个错误无效的参数/选项
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用
/
而不是\
。这很好用。Use
/
instead of\
. This works just fine.不幸的是我无法在 ZEE 的评论中添加评论(没有足够的“声誉”)。
使用 /TN 开关,您必须使用“路径” - 包含任务计划程序中的文件夹。或者你会得到一个错误:
例如:(
另请参阅 Jonathon Kellers 博客: http://www.jonathankeller.com/2012/02/schtasks-query-tn-tasks-over-network.html)。
为了获得更好的输出,我建议使用开关“/fo list”->输出为列表和详细的“/v”:
Unfortunatly I can not add a comment to ZEE's comment (not enough "reputation").
With the /TN switch you have to use the "path" - containing the folder in the task scheduler. Or you get an error:
For example:
(see also Jonathon Kellers Blog: http://www.jonathankeller.com/2012/02/schtasks-query-tn-tasks-over-network.html).
For better output I recommend the switch "/fo list" -> output as a list and verbose "/v":