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.

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
add comment

1 Answer 1

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
add comment

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.