Windows – Run a batch file when I lock/unlock the computer

batchbatch filelockwindows

Is there a way I can run a batch file upon locking my computer, and then run another batch file when I unlock it? (Windows 8.1)

Thank you!

Best Answer

  • I am sorry I can't give you english screenshots.
    Just create a task in planned tasks.
    At the "trigger" tab, you can select "At lock" and "At unlock".

  • Related Question