简体   繁体   English

如何编辑计划任务触发器

[英]How to edit a scheduled task trigger

$taskExists = Get-ScheduledTask $strTaskName
   if($taskExists) {

    $taskExists.Description = "a daily  Report"

    $taskExists | set-scheduledtask -user $strUser -Password $strPassword
   }

The above piece of power shell code is to update existing schedule task. 上面的电源shell代码是更新现有的调度任务。 Could anyone please tell me how to update the trigger values? 谁能告诉我如何更新触发值?

Get-ScheduledTask cmdlet返回的任务具有Triggers属性,您可以在其中添加/删除触发器。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM