Running a script before locking a computer on Windows

前端 未结 2 1581
醉酒成梦
醉酒成梦 2020-12-14 12:17

I\'ve written some powershell which allows me to harness the power of the keyboard media keys to control any music that\'s currently running.

What I want to be able

2条回答
  •  长情又很酷
    2020-12-14 13:09

    Try and create a permanent event consumer for the lock/unlock events. Check http://powerevents.codeplex.com and look at an example of using PowerEvents module at http://www.ravichaganti.com/blog/?p=1951

提交回复
热议问题