且构网

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

如何使用 Windows 任务计划程序自动执行 PowerShell 脚本?

更新时间:2021-11-03 21:52:18

创建定时任务并设置动作为:

Create the scheduled task and set the action to:

程序/脚本:Powershell.exe

参数:-File "C:\Users\MyUser\Documents\ThisisMyFile.ps1"