note: should work in earlier versions of windows too
foregroundlocktimeout regedit
1. open regedit*
2. navigate to HKEY_CURRENT_USER\Control Panel\Desktop
3. change the value of ForegroundLockTimeout to 30d40  (by default the value is probably 0)
Restart may be required for the change to take effect.
* to open regedit hit the windows key and search for "regedit"

Similar Posts