简体   繁体   English

SCHTASKS不会在计划的时间自动执行

[英]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.

相关问题 在Windows Server 2012上从计划任务运行批处理文件不会写入光盘 - Running batch file from scheduled task on windows server 2012 won't write to disc Powershell:将计划任务设置为在用户未登录时运行 - Powershell: Set a Scheduled Task to run when user isn't logged in 计划任务不显示在 Get-ScheduledTask 结果中 - scheduled tasks don't show up in Get-ScheduledTask result IIS8不会更新网站 - IIS8 Won't update web site ESXi 主机无法开机,处于当前状态(关机) - ESXi host won't power on, in current state (powerd off) 指向第一个域的子文件夹的第二个域不会在IIS 8 URL重写中重写端口 - Second domain pointing to subfolder of first domain won't rewrite port in IIS 8 URL Rewrite 在IIS下运行的PHP上创建计划任务 - Creating A Scheduled Task on PHP Running Under IIS 使用IDLE(python GUI)Windows Server 2012运行的计划任务python - Scheduled tasks python running with IDLE(python GUI) Windows server 2012 列表视图中以0x8007000为前缀的定时任务返回码,在事件日志中注册为0 - Return code of scheduled task prefixed with 0x8007000 in list view, registered as 0 in the event log .NET 控制台应用程序按计划抛出错误。 手动执行时运行良好 - .NET Console App throws error when scheduled. Runs fine when executed manually
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM