FullyQualifiedErrorId : HRESULT 0x80070005,Disable-ScheduledTask | Access denied,trying to disable a Windows scheduled task

-1

Access denied,trying to disable a Windows scheduled task as a non interactive, non-admin user with log on as batch job privilege

I have an automation task at hand that needs me to be able to restart a service, enable disable a task scheduler as a non admin and non interactive user.

I've been able to control the service as a non admin by providing the user selective privileges to start stop the service using Microsoft management console(MMC) and providing the user log on as service privileges.

I am unable to control a scheduled task in a similar fashion.

Disable-ScheduledTask -TaskName test

Access denied

FullyQualifiedErrorId : HRESULT 0x80070005,Disable-ScheduledTask

  1. I have provided the user - Log on as batch job privileges

  2. Have given the user full control to TASKS folder under system32 folder

  3. tasckscd.msc file - I observed that even an admininstrator is provided only a read/execute permission for admin to be able to only disable, enable, run a task. The user group "System user" that my user is part of also has a read/execute permission but couldn't disable/enable a task.

I believed a read, execute permission to taskschd.msc and Tasks folder under system32 folder should allow a user to disable enable scheduled tasks, but looks like it isn't.

FullyQualifiedErrorId : HRESULT 0x80070005,Disable-ScheduledTask

powershell
taskscheduler
asked on Stack Overflow Nov 13, 2019 by Satish Kumar Nadarajan • edited Nov 15, 2019 by Satish Kumar Nadarajan

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0