首页 文章

PowerShell无法正常工作的任务计划程序

提问于
浏览
0

我需要通过taskscheduler运行一个简单的PowerShell脚本来备份我的sharepoint服务器场 .

当我复制粘贴shell上的命令时,它完全正常 .

但是在任务调度程序上,它表示参数不正确 .

enter image description here

命令很简单:

powershell -file "\\10.116.2.12\nasbk02\BKPORTAL\BackupFarm.ps1"

enter image description here

1 回答

  • 2

    所有参数必须进入 Add arguments (optional) 框:

    enter image description here

相关问题