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

The TweakUI powertoy for Windows XP had an option to auto-login. It stored your password and did the login for you. This was useful, since you kept password protection, but had login programs loaded when you first booted.

When you switched users or hibernated, it would still ask for a password, which is the desired behavior.

Is there a way of doing this in Windows 7?

share|improve this question
up vote 10 down vote accepted

Yep. Run control userpasswords2 from the command line. Uncheck the box for "Users must enter a user name and password to use this computer". When you click "Apply", you'll be asked for the username/password combo you want to use to login. This user will then get logged in automatically.

User account auto login

select user

share|improve this answer
I found this as well: -- it auto logon (to load programs, etc) and lock immediately. exactly what i needed :) – bortao Feb 9 '11 at 18:11
If you want to have it lock automatically, just add a shortcut to rundll32.exe user32.dll, LockWorkStation to your Startup folder. No need to install third party programs. – nhinkle Feb 9 '11 at 20:58

TweakUI is just a GUI interface for registry keys, which can also be accessed using Systinternals Autologon.

share|improve this answer
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]




share|improve this answer
what will this do? – Simon Sheehan Jan 30 '12 at 22:00

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.