Task Scheduler not running when system is locked

I have created a .bat file to run at evening at 05:59 PM everyday but the task is not running in the machine when the system is locked.I have selected the option as provided in this link


But I am getting error while changing the Security Option in Print Screen A.Can anyone help me on the same.

Error is provided below for reference
"Task Scheduler cannot apply your changes.The user account is unknown,the password is incorrect or the user account does not have permission to modify the task"