Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I had one answer here about how to do auto-login & sceen locking How to do silent auto-login?

however it is not secure, how to do that more secure way?

P.S. I tried the free tool called Auto Logon & Lock, but it doesn't work for me.

share|improve this question
Related: Windows 7: Automatially login and lock – Ƭᴇcʜιᴇ007 Nov 6 '11 at 19:01

Change your logon shell at HKCU\Software\Microsoft\Windows NT\CurrentVersion\Winlogon → Shell (REG_SZ) from Explorer to a program that first calls LockWorkStation(), followed by starting of the real Explorer.exe.

Or do it even earlier by changing HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon → Userinit (REG_SZ) to a wrapper for Userinit.exe.

(Do not use rundll32 for locking, though. Write something in C# or Python or whatever else.)

share|improve this answer

Your Answer


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.