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
I have provided the user - Log on as batch job privileges
Have given the user full control to TASKS folder under system32 folder
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
User contributions licensed under CC BY-SA 3.0