我有一个 PowerShell 脚本设置为每天作为计划任务运行,它的设置操作为:运行程序 PowerShell.exe 参数:-executionpolicy bypass -file D:\Scripts\SomeScript.ps1
脚本成功完成,在任务管理器中我可以看到 PowerShell 启动然后关闭,但任务计划程序仍然显示它正在运行。
对于如何解决这个问题,有任何的建议吗?
powershell scheduled-task task-scheduler windows-server-2012-r2