How to lock computers when idle by using GPO
What I wanted to do is that, after my computer has been idle for 3 minutes, it should lock itself. How to achieve this is one of the trouble for me for almost two days. I have been digging around the net, but no answer. I tried to find myself in GPO (Group Policy Editor), but I don’t find the option directly.
But many articles I read on the net pointed me that I can changed four options in GPO. But that is for screensaver. I tweak a bit to achieve what I want. Remember I have told you guys about how to create shortcut to lock computer. Well, I used that tweak.
Here are the steps that I took:
- First go to Start –>> gpedit.msc
- Go to User Configuration –>> Administrative Templates –>> Control Panel –>> Display
There are many options there, but you just need to change four of them as follow.
- For screen saver option, just choose Enabled.
- For screen saver executable, choose Enabled and then type “rundll32 user32.dll,LockWorkStation“
- For password protect the screen saver, choose Enabled.
- For screen saver timeout, choose Enabled and then type the amount of time you want to lock your computer in seconds. (For example, if you want to lock your computer after three minutes of idle time, type 180)
That’s it. Next time if you’re away, you don’t have to worry about some other would invade your computer.
BtoN’s Tips : I have tested this on Vista and should work on Windows XP too. For screen saver timeout, if I set value less than 60, it won’t work.
Tags:
Related posts:
2 Comments
Leave a comment
Recent Posts
Recent Comments
Tags
Archives
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- November 2009
- July 2009
- May 2009
- April 2009
- January 2009
- October 2008
- September 2008
- August 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- November 2006
- February 2006
- January 2006
- December 2005




this is great! thanks
Hi there, we have been using this and its a great solution, however, when playing a film, it still locks after the set time (is that really idle). Is there a way to change this?