Automatically lock screen on lid close in Windows 7
I believe you can change some registry settings to have the PC lock when you shut the lid:
- Launch registry (start > regedit)
- Local the following: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SessionManager\Power
- Right Click > New > DWORD (32 bits)
- Rename it to AwayModeEnabled
- Select AwayModeEnabled > Right Click > Change value to 1 (hexadecimal)
- Go to Power Options and change the lid close action to Sleep.
This should have 'tricked' the OS into locking the PC when the lid is closed (rather than putting this to sleep).
Please backup your registry before making any changes just in case you change the wrong thing.