Allow non-admin user to run scheduled task in Windows Server 2016

windows 10windows-server-2016

In previous versions of Windows we could allow a user to execute a scheduled task by granting Read+Execute permissions to the file in WINDOWS\SYSTEM32\Tasks.

This no longer works in Windows 2016. I tried granting Full access to the MyTask file for Everyone. But still I get:

schtasks.exe /Run /TN "MyTask"
ERROR: Access is denied.

Has anyone figured out how to make this work in Windows 2016?

EDIT: I granted SeBatchLogonRight to the account with ntrights but it made no difference.

Best Answer

There is a powershell script in this thread that will grant Authenticated users read and execute permissions to a task:

https://social.technet.microsoft.com/Forums/windows/en-US/6b9b7ac3-41cd-419e-ac25-c15c45766c8e/scheduled-task-that-any-user-can-run?forum=win10itprogeneral

Related Topic