I have this small thing that I want to do: When my laptop resumes sleep/hibernate I want to run a small script (.bat) that requires to be run as administrator.

I have created a Task on Scheduler.
  • Under General tab I've been experimented with all the options.
  • On Triggers tab I've used "logon" and "startup" which have succeded but are useless to me; so the only active I have now is "workstation unlock".
  • Actions: start a program

So, while my task is able to start on logon and startup why can't it start on workstation unlock?