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

时间:2014-12-30 02:20:56

标签: powershell scheduled-tasks windows-server-2008

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

当我在shell上复制粘贴命令时,它可以正常工作。

然而,在任务调度程序中,它表示参数不正确。

enter image description here

命令非常简单:

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

enter image description here

1 个答案:

答案 0 :(得分:2)

所有参数必须进入添加参数(可选)框:

enter image description here