powershell不工作的任务计划程序
我需要通过taskscheduler运行一个简单的powershell脚本来备份我的sharepoint场 当我在shell上复制粘贴命令时,它工作得非常好 但是在任务调度器上,它表示参数不正确 命令非常简单:powershell不工作的任务计划程序,powershell,scheduled-tasks,windows-server-2008,Powershell,Scheduled Tasks,Windows Server 2008,我需要通过taskscheduler运行一个简单的powershell脚本来备份我的sharepoint场 当我在shell上复制粘贴命令时,它工作得非常好 但是在任务调度器上,它表示参数不正确 命令非常简单: powershell -file "\\10.116.2.12\nasbk02\BKPORTAL\BackupFarm.ps1" 所有参数必须进入添加参数(可选)框: 将PowerShell之后的所有内容移动到参数中。因此,在addarguments中应该是-File…。如果不起作用
powershell -file "\\10.116.2.12\nasbk02\BKPORTAL\BackupFarm.ps1"
所有参数必须进入添加参数(可选)框:
将PowerShell之后的所有内容移动到参数中。因此,在addarguments中应该是
-File…
。如果不起作用,请使用PowerShell.exe的完整文件路径。此服务器上的ExeccutionPolicy设置为什么?