简体   繁体   English

Powershell的任务计划程序不起作用

[英]Task Scheduler with powershell not working

I need to run via a taskscheduler a simple powershell script that backups my sharepoint farm. 我需要通过一个任务计划程序运行一个简单的Powershell脚本来备份我的共享点服务器场。

When I copy paste the command on the shell it works perfectly fine. 当我复制命令粘贴到外壳上时,它可以很好地工作。

However on the task scheduler it says parameter its incorrect. 但是在任务计划程序上,它说参数不正确。

在此处输入图片说明

The command is very simple: 该命令非常简单:

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

在此处输入图片说明

All parameters must go into the Add arguments (optional) box: 所有参数都必须进入“ 添加参数(可选)”框中:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM