Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I login to / unlock my Windows 7, I need to switch the machine to ping-responsiveness mode.

When I pres Win-L key, i.e. lock the machine, I need it to ignore ICMP pings.

How would I accomplish this?

share|improve this question
    
No, I need to trigger an action on other machine –  Calikin May 11 '12 at 17:04

1 Answer 1

I would use this registry bit to disable win+L functionality.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
"DisableLockWorkstation"=dword:00000001

Then we can re-assign win+L to run a custom batch script that disables ping followed by locking the machine. Combine that with a login script that re-enables ping upon unlock/logon.

Or we could leave win+L alone and just start the batch script with a different key combo.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.