Scheduled task failing when being deployed by GPO on some PC's

0

I have scheduled a Task Scheduler using GPO (Windows 2012 R2). it 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. Checked "Run whether user logged in or not"
  2. Unchecked "Start the task only if the computer is on AC power"

the actual command is

Schtasks.exe /Create /SC DAILY /TN Shutdown /TR "C:\Windows\System32\shutdown.exe /s /t 0" /ST 21:00:00 /SD 01/01/2015 /RU SYSTEM /RL HIGHEST

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

windows-7
windows
windows-10
scheduled-tasks
asked on Super User Jan 10, 2017 by software is fun • edited Jan 10, 2017 by software is fun

1 Answer

0

There's no reason (at least not one that you've explained) to make a task (via GPP) that creates a task (via SchTasks).

So just define the Shutdown task directly in GPP. To do this, in the GPP policy:

  • Set "Run" to shutdown.exe
  • Set "Arguments" to /s /t 0
answered on Super User Jan 10, 2017 by Ƭᴇcʜιᴇ007

User contributions licensed under CC BY-SA 3.0