简体   繁体   English

每天相同时间运行Sitecore计划任务(PowerShell脚本)

[英]Run Sitecore scheduled task (powershell script) same time every day

I have a sitecore powershell script that I need to run every day at the same time. 我有一个Sitecore Powershell脚本,我需要每天同时运行。 As everyone knows, this isn't possible out of the box. 众所周知,这是不可能的。 I have read on this site and other blogs that one way to get around it is by updating the "last run" time of the task to the desired time at the end of the task. 我已经在该网站和其他博客上读到,解决该问题的一种方法是将任务的“上次运行”时间更新为任务结束时的所需时间。 Is it possible to update the "last run" time of task in powershell? 是否可以在Powershell中更新任务的“上次运行”时间?

Yes, you could write a script for Sitecore Powershell Extensions to update the last run time. 是的,您可以为Sitecore Powershell Extensions编写脚本以更新上次运行时间。 However, I think you would be better off using the SiteCron module for this. 但是,我认为您最好使用SiteCron模块

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

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