PowerShell的任务调度程序;上次运行成功,但没有复制项目
我需要帮助理解为什么计划任务不起作用,即使最后一个成功的运行时间说,
操作成功完成。
结果是它没有复制到目标文件夹,但是如果我手动运行.ps1脚本,它将成功完成。
1
2
图3
add-executionpolicy bypass C:\ auto_p \ applied.ps1
4
5
6
I need help understanding why the scheduled task is not working, even though the last successful Run Time says,
The operation completed successfully.
The result is that it's not copied to the destination folder, but if I run the .ps1 script manually, it completes successfully.
1
2
FIG 3
Add-ExecutionPolicy Bypass C:\auto_p\applied.ps1
4
5
6
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对我来说,我只是在下面写
程序/脚本:
一个小技巧:
您还需要确保您的脚本不包括网络中的一些文件夹快捷方式。
如果来自网络的源 /目标文件夹,请编写网络的完整部分,而不是快捷驱动器字母。
For me, I just write as below
Program/Script:
A small tip:
You also need to make sure your script does not include some folder shortcut from network.
If there is a source / destination folder from network, please write the complete part of the network instead of your shortcut drive alphabet.