Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

How to enforce autologin not just first time when computer boots, but even if user click logoff.

So when user clicks logoff, he is imidiatly loged back.

share|improve this question
I saw this on some embeded winXP box. When you powerd on the computer you get logged directly into user account. When you cklicked log off you have been logged of and the imidiatly loged in back again. For accessing the administrator account you have had to press and hold shift key and then click logof. This way you get the normal windows login dialog. – Primoz Mar 5 '11 at 15:07
up vote 0 down vote accepted

On Windows XP and Windows 2003:

Under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon add the following values (of type REG_SZ):

  1. DefaultUserName – the user name
  2. DefaultPassword – the password to use
  3. AutoAdminLogon1 to enable automatic logon
  4. ForceAutoLogon1 to enforce automatic logon when the user logs out

Note that the key and all of its values, including DefaultPassword, are readable by authenticated users both locally and through Remote Registry:

share|improve this answer
Thank you very much. – Primoz Mar 7 '11 at 22:31

Use a GPO to remove the user's ability to log off.

Problem solved.

share|improve this answer
This is not the desired solution. – Primoz Mar 5 '11 at 15:07

You can do this with out using GPO by using tweakui...Another way the problem is solved.

share|improve this answer
This is not the desired solution. – Primoz Mar 5 '11 at 15:09
@Primoz: It would be more helpful if your comments explained why the solution is undesired. – grawity Mar 5 '11 at 15:38

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.