The operator or administrator has refused the requ

2020-02-26 04:38发布

I have scheduled a C# console application in Task Scheduler of Windows 2012 R2. Application will run when executed it manually or Right click on scheduled task and click on Run, but it is failed when triggered by Task Scheduler with below error.

The operator or administrator has refused the request(0x800710E0)

I have followed below steps also after Google search

  1. Selected "Run whether user logged in or not"
  2. Unchecked "Start the task only if the computer is on AC power"

8条回答
劳资没心,怎么记你
2楼-- · 2020-02-26 05:19

For me, the solution was to check Run with highest privileges in the properties.

查看更多
欢心
3楼-- · 2020-02-26 05:25

Error occurred due to folder permission, I was creating CSV from my application, which was required folder permission to be granted. After giving Full Control to the folder error got resolved.

查看更多
何必那么认真
4楼-- · 2020-02-26 05:25

I know that @Sushmit-Patil found a solution, but I wanted to add a solution to my similar problem:

It turns out a prior process never exited (it was hanging around in memory because of a defect I had in my code). By default, Windows Task Scheduler won't run the process again if it's already running.

In addition to fixing the defect, in Task Scheduler, under the Settings tab, I set If the task is already running, then the following rule applies: to Run a new instance in parallel

Task Scheduler Run a new instance in parallel1

查看更多
Fickle 薄情
5楼-- · 2020-02-26 05:26

You can also do this from "settings". Probably earlier instance was already running and launching a new instance failed.

Option in Settings

查看更多
干净又极端
6楼-- · 2020-02-26 05:27

In my case my task launches a PowerShell script--and it produced the "The operator or administrator has refused the request (0x800710E0)" error message as seen in the Task Scheduler's task-entry grid. My user name was correct, but when I dropped to a command prompt and simulated the task by running the PowerShell against my .ps1 file, I saw an Avast prompt that flagged my script as suspicious and wasn't allowing it to run. I created an Avast exception and now the task runs without any issue.

查看更多
我只想做你的唯一
7楼-- · 2020-02-26 05:35

In my case, the error message "The operator or administrator has refused the request" meant that a previous instance of the task has been still running and because there was an option "Do not start a new instance" selected (default state) under "If the task is already running, then the following rule applies" on the Settings tab of the task, Task Scheduler refused to start a new instance.

But that error message is pretty confusing. From the other answers you may see that it may mean many completely distinct errors. As is usual in Microsoft's products.

It's helpful to check the History tab of a task. That's where I have found out what's going on. There was an event "Launch request ignored, instance already running".

查看更多
登录 后发表回答