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

https://superuser.com/questions/1214736/windows-10-scheduled-tasks-with-workstation-lock-unlock-not-...

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"