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 11 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: torch.freeweb7.com/autologon.html -- it auto logon (to load programs, etc) and lock immediately. exactly what i needed :) – bortao Feb 9 '11 at 18:11
2  
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
    
An (unstated) important step is that by disablingUsers must enter a user name and password to use this computer, you are allowed to select the user which you want to be the default account, once you have selected the user and you enable Users must enter a user name and password to use this computer and hit apply the prompt is displayed. There are numerous other questions with slightly incomplete answers, this answer does work for ALL accounts, even those without a password. – Ramhound Apr 25 at 17:30

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]

"AutoAdminLogon"="1"

"DefaultUserName"="USER@AD-DOMAIN"

"DefaultPassword"="PASSWORD"

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

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.