我想在任务计划程序中运行它

I want to run this in task scheduler

提问人:oryxway 提问时间:11/10/2023 更新时间:11/10/2023 访问量:97

问:

wmic product where "name like 'Forti%%'" call uninstall /nointeractive

我尝试在不重新启动的情况下运行它,但它不会卸载程序。

wmic product where "name like 'Forti%%'" call uninstall /nointeractive|wmic && shutdown /a

这将立即重新启动,我们不希望这种情况发生在用户身上。所以,我想我想把它作为任务计划程序运行,以通过Intune在特定时间运行它。

这将通过 Intune 完成,而不是通过本文所示的常规方法完成。

https://credibledev.com/how-to-deploy-a-scheduled-task-in-intune/

因此,我不确定如何在程序/脚本的任务计划程序中执行此操作。我应该编写将其另存为 vbs 脚本并从网络共享执行它还是如何操作?

提前致谢

PowerShell 任务 计划程序 WMIC Intune

评论

1赞 Olaf 11/10/2023
第二个命令中管道的用途是什么?命令的参数取消并持续关闭。/ashutdown

答: 暂无答案