[英]SCHTASKS won't execute at scheduled time automatically
I have a schtask task called asset which won't execute automatically at the scheduled time 5:00am. 我有一个名为Asset的schtask任务,该任务不会在计划的5:00 am自动执行。 I would however point out it ran automatically at it's scheduled time perfectly until recently.
不过,我要指出的是,它会在预定的时间自动完美运行直到最近。 The asset task simply runs a php script.
资产任务仅运行一个php脚本。
schtasks /create /tn "ASSET" /tr "C:\xampp\php\php.exe c:\xampp\htdocs\asset\assetemailscheduler.php" /sc daily /st 05:00:00
When I explicitly run asset the task it works perfectly. 当我明确运行资产任务时,它可以完美运行。
schtask /run /tn asset
Please advise. 请指教。
Launch the Control Panel, Click Administrative Tools. 启动控制面板,单击管理工具。 Click the Task Scheduler.
单击任务计划程序。 Now we must assign a user to the asset task at hand and a password.
现在我们必须为用户分配资产任务和密码。 This resolved the shut down issues for me.
这为我解决了关机问题。 The user I assigned to the asset task was my self.
我分配给资产任务的用户是我自己。 I assigned my own account to the asset task and provided my password.
我将自己的帐户分配给了资产任务,并提供了密码。 It's worth noting when you change your password.
更改密码时值得注意。 You must also update the password in the Task Scheduler for the asset task.
您还必须在任务计划程序中更新资产任务的密码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.