简体   繁体   English

如何使用Powershell运行现有任务计划程序的任务(计划任务)?

[英]How to run existing task scheduler's task (Scheduled Task) using Powershell?

Is it possible to run existing task scheduler's task on Windows 10 using Powershell? 是否可以使用Powershell在Windows 10上运行现有任务计划程序的任务?

I can create, modify, delete tasks on win 10 with powershell. 我可以使用Powershell在Win 10上创建,修改,删除任务。

I know about command line schtasks.exe. 我知道命令行schtasks.exe。

Use the Start-ScheduledTask Cmdlet: 使用Start-ScheduledTask Cmdlet:

Here is an example: 这是一个例子:

Start-ScheduledTask -TaskName "ScanSoftware"

Please check this link for more information 请检查链接以获取更多信息

I can only assume that you're referring to schtasks.exe. 我只能假设您是指schtasks.exe。 This command line is the method I've used many times for running a task. 此命令行是我多次用于运行任务的方法。 Is there a reason to not use this command line utility? 是否有理由不使用此命令行实用程序?

Schtasks /run /tn should do the trick. Schtasks / run / tn应该可以解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何通过 powers shell 命令在任务调度程序中运行计划任务 - How to run a scheduled task in task scheduler through powers shell command 如何在静默/隐藏模式下使用任务调度程序运行powershell脚本? - How to run powershell script using task scheduler in silent/hidden mode? 如何在任务调度程序中使用 VBA 正确运行 powershell 脚本? - How to properly run a powershell script using VBA in a task scheduler? 使用任务计划程序计划的Powershell脚本无法运行…脚本运行正常 - Powershell script scheduled using Task scheduler doesn't run…script runs fine 在Powershell中创建的计划任务未出现在Task Scheduler中 - Scheduled task created in Powershell doesn't appear in Task Scheduler 无法使用PowerShell在任务计划程序中创建任务 - Unable to create task in task scheduler using PowerShell 使用 powershell 在任务计划程序中更改任务的属性 - Change a property of a task in task scheduler using powershell 如何使用powershell检查具有taskname的任务是否在任务调度程序上注册 - How to check if a task with taskname is registered on task scheduler using powershell 使用PowerShell创建计划任务 - Creating Scheduled Task using PowerShell 使用计划的Powershell任务运行远程脚本超时 - Using a scheduled powershell task to run remote script timeouts
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM