How do I run .net code when a user unlocks their machine?
Windows versions: XP and 7
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This article looks perfect for you if you want to subscribe to the session lock/unlock events (e.g. how Messenger sets your status to away when you lock your PC).
http://blogs.msdn.com/b/shawnfa/archive/2005/05/17/418891.aspx
Alternatively, you can run a script on Windows 7 unlock as per this ServerFault question: https://serverfault.com/questions/148258/run-a-script-after-i-unlock-my-windows-session