通过powershell进行事件触发的任务 [英] event-triggered task via powershell

查看:84
本文介绍了通过powershell进行事件触发的任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨脚本专家。

我想创建一个任务,该任务将由eventlog中的事件触发。但New-ScheduledTaskTrigger没有这样的选择。请告诉我,我怎么能通过PowerShell做到这一点?谢谢。

I want to create a task, that will be triggered by event from eventlog. But New-ScheduledTaskTrigger has no such option. Please tell me, how can i do this via powershell? Thanks.




推荐答案

这是正确的。 您需要使用GUI执行此操作。 您也可以创建一个并导出它,编辑导出的文件并导入。

That is correct.  You need to do that with the GUI.  You can also create one and export it the edit the exported file and import.


这篇关于通过powershell进行事件触发的任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆