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.

Is there a way to set a Windows system to lock (as if Win+L had been pressed) an idle session without using a screen saver?

I'm looking for answers compatible with Windows XP and above. I'd rather not use Task Scheduler if there is a local group policy or other setting that can be used instead.

share|improve this question

2 Answers 2

up vote 9 down vote accepted

Open your screensaver properties. Change the screensaver to "None", select "On resume, display logon screen" and then set the "Wait:" time to your desired idle time.

This does not engage the screensave, rather goes directly to the logon screen as if you just locked it using Win + L.

enter image description here

share|improve this answer
    
He specifically asked for a solution without screen savers. Otherwise: superuser.com/questions/167054/… –  Oliver Salzburg May 24 '12 at 16:45
    
This doesn't use screensaver (notice None selected). It doesn't say not to use the interface which invokes it. Yes that answer is similar, but not the same. Mine specifically does not use a screensaver. –  CharlieRB May 24 '12 at 16:51
1  
You're right. Sorry, my mistake. –  Oliver Salzburg May 24 '12 at 16:51
1  
@OliverSalzburg While this does use the "screen saver" function, it does not use an actual screensaver. Absent any other solution that doesn't require a scheduled task, I'm inclined to go in this direction. I didn't know that the "display logon screen" option was available with the "None" option selected. –  Iszi May 24 '12 at 16:52
    
This works, but I've not had it working before even though I had the relevant settings set. I had to unset, Apply and set, Apply the settings again to get it to work. Or I haven't noticed it before. BTW, the screen goes black for about 2 seconds before the lock screen is shown. Again BTW, this is a Windows 7 and above feature. Windows Vista and below still requires a screensaver to be set. You can use the "Blank" screensaver if nothing fancy is desired. –  ADTC Jun 10 at 8:57
  1. Go into C:\Windows
  2. Create a new shortcut
  3. Paste this in the path: %windir%\System32\rundll32.exe user32.dll,LockWorkStation.
  4. Click next and rename it, click finish.
  5. Then Control Panel
  6. Scheduled Tasks
  7. Add Scheduled Task.Give some Proper name.
  8. Next/Browse
  9. Find the new shortcut, select it, pick daily, next.
  10. Type in a password for the Scheduled
  11. Task/Confirm, Next, Finish
  12. Double click the new scheduled task you just made
  13. Schedule Tab
  14. Schedule Task
  15. Select when Idle, enter time allotment, ok.

    Reference

share|improve this answer
1  
voted down? hmm.. First of all I am very much new on superuser. but i have seen many answers on superuser which just points to another sites those contains good solution. If you want me to post whole solution,i will edit it. But voted down makes an impression that answer is useless or complicity wrong ?? isn't it ? –  Kunal Shivalkar May 24 '12 at 16:36
3  
@KunalShivalkar, don't get discouraged. I went through the same thing when I first started. The idea of Superuser is for us to share our experience in order to help, not just link to what we find. Linking is great for support of your answer, but not so good as the answer alone. –  CharlieRB May 24 '12 at 16:48
1  
Thanks for the info but, as I said in the question, I'd rather avoid using Task Scheduler for this. –  Iszi May 24 '12 at 18:33
2  
@Kunal: Don't delete your answer. It might help someone in the future. –  indiv May 24 '12 at 19:19
1  
Couldn't the OP just do the first four steps and end up with a shortcut that when invoked locked the workstation? Using the task scheduler is not necessary. –  martineau May 24 '12 at 20:30

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.