简体   繁体   English

任务计划未执行可通过任务计划程序(Windows10)手动运行的Powershell脚本

[英]Task Scheduling not executing a Powershell script that can be manually run through Task Scheduler (Windows10)

Trying to follow this guidelines https://github.com/vstarostenko/dv8p_wifi_issue_fix/blob/master/README.md I have now a Powershell script that works, but that is not triggered with event 507. 尝试遵循此准则https://github.com/vstarostenko/dv8p_wifi_issue_fix/blob/master/README.md我现在有一个可以运行的Powershell脚本,但是不会被事件507触发。

  • The script works if manually run through Task Scheduler (in windows 10) (shown by history record and because I have an alert in the script that displays a message) 如果通过任务计划程序手动运行脚本(在Windows 10中)(通过历史记录显示,因为脚本中有显示消息的警报,所以该脚本有效)
  • The 507 event is shown in the event-viewer when it moves back from standby 当507事件从待机状态移回时,它会显示在事件查看器中
  • And the marked options in the Task appear to be correct (see below) 并且任务中标记的选项似乎是正确的(请参阅下文)
  • *But the script doesn't run in response to the event *但是脚本不会响应该事件而运行

Any idea? 任何想法?

任务计划程序的屏幕截图

I tried running the task not based on the event but on a particular minute, and it worked. 我尝试不是根据事件而是在特定的分钟上运行任务,并且该命令有效。

Then I tried to do the same event trigger, but then something changed. 然后,我尝试执行相同的事件触发器,但随后发生了一些变化。 I did exactly the same but in the "Source" input, except saying Kernel-power, it now says Microsoft-Windows-Kernel-Power, having selected the same. 我做了完全相同的操作,但是在“源”输入中,除了说了Kernel-power,现在说的是Microsoft-Windows-Kernel-Power,选择了相同的东西。

And now it works. 现在就可以了。

My assumption, I updated 2 days ago the system and it downloaded several critical files (I didn't pay attention, but it sounded to me to the first windows10 pseudo-service-package that I read few days ago). 我的假设是,我在两天前更新了系统,并下载了一些关键文件(我没有注意,但对我来说,几天前读到的第一个Windows10伪服务程序包听起来像)。 I guess that they corrected the bug(?), but that it still persisted until I have re-done the Trigger again. 我猜他们已经纠正了该bug(?),但是它仍然存在,直到我再次重做触发器为止。

Anyway, now it works :) 无论如何,现在它可以工作了:)

暂无
暂无

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

相关问题 PowerShell 脚本手动运行,但不通过任务计划程序运行 - PowerShell script runs manually but not through the Task Scheduler 在任务计划程序Windows 2008 Server中计划Powershell脚本的问题 - issue with scheduling a powershell script in task scheduler windows 2008 server 为什么任务计划程序的结果与手动运行PowerShell脚本不同 - Why the result of Task scheduler is different with manually run PowerShell script 如何手动或在任务计划程序中运行 PowerShell / ImapX 脚本? - How to run a PowerShell / ImapX script manually or in Task Scheduler? Excel 宏通过 powershell 运行,但在 Windows 任务计划程序运行时不运行 - Excel macros run through powershell but not when run by windows task scheduler PowerShell 脚本在通过任务调度程序运行时缺乏一致性,是我遗漏了什么还是这个 Windows 是 Windows? - PowerShell script lacks consistency when run through task scheduler, am I missing something or is this Windows being Windows? 来自 Windows 10 任务调度程序的 Powershell 脚本未启动 Chrome - Powershell script from Windows 10 task scheduler not launching Chrome 通过任务计划程序运行时,Azure Powershell脚本失败 - Azure Powershell script fails when run through task scheduler 通过任务计划程序运行时,导航PowerShell脚本失败 - Navigation powershell script fails when run through task scheduler 从Windows任务计划程序执行PowerShell - Executing PowerShell from Windows Task Scheduler
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM