且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将Powershell脚本作为计划任务运行

更新时间:2022-12-02 18:20:19

弄清楚了.我什至没有想到要在32和64版本的Powershell中设置执行策略.手动运行它时,它使用的是一个,而通过预定任务运行时,则使用了另一个.一旦确定两者都设置好,一切就很好了.谢谢大家的答复.

Figured it out. I didn't even think to set the execution policy in both the 32 and 64 versions of powershell. When running it manually, it was using one, and running it through scheduled tasks was using the other. Once I made sure it was set it both, everything is good to go. Thank you all for your responses.