XP: Logon Automatically When Starting Windows

Contributor Icon Contributed by AlexTheBeast Date Icon December 20, 2003  
Tag Icon Tagged: Windows

Restart your system without having to manually log on.


By default XP requires a user to logon everytime he/she restarts the system. For single user systems this continues to be a good practice for security reasons; however, many users find the process of logging-in silly in a one-user system.

The recipe will describe how the user can have XP automatically log-in during start-up.

Note: This can also be done automatically through Microsoft’s unsupported power tool TweakUI which has an autologon feature.

Here’s the manual way to do this:

1. Click on the Start Menu
2. Click Run
3. In the open field type: control userpasswords2
4. Click OK
5. An User Accounts Dialog Box will open.
6. Select the Users Tab
7. Clear the Users must enter a user name and password to use this computer checkbox
8. Select the Advanced Tab
9. If it is not already, clear the Require users to press Ctrl-Alt-Del before logging on checkbox
10. Press Apply
11. A dialog box will open asking you for user name and password
12. Input the information into these fields
13. Click OK
14. Click on Start Menu again
15. Open your Control Panel
16. Open User Accounts
17. Click Change the way users log on or off
18. If it is not already, clear checkbox for Use the Welcome Screen
19. If it is not already, clear checkbox for Use Fast User Switching
20. Click the Apply Options button
21. Reboot to see your results

I have tested this on systems that are in not part of a network. Network systems may require additional/different steps such as described in this Microsoft Support Article.

Previous recipe | Next recipe |
 
  • mikeyg
    I followed the directions exactly, now my computer demands a login and password before it will boot. Nothing that I give it will work including "Administrator" and a null password or my old account name and any password I have ever used or a null password.

    Fortunantly I ghosted the main drive onto a second drive a few months ago, so I can use that for now, but I have lost alot of data. What can I do to restore my main drive to normal use? Can I copy some files from the old backup to the C drive? If so, which files?

    mikey
  • AlexTheBeast
    Hmmm... that's odd. I've followed these steps in the recipe before.

    There are several ways of gaining access to your system now... even without the password. Don't restore your ghost drive yet.

    Both of these boot discs have password recovery tools on them:

    http://www.ultimatebootcd.com/
    http://www.windowsubcd.com/

    This linux disc also has the ability to reset the NT password... likely it will work on XP as well:
    http://www.nttoolbox.com/public/tools/LinNT.zip

    This looks helpful as well:
    http://www.winternals.com/products/repairandrec...

    Another password reset disc:
    http://home.eunet.no/%7Epnordahl/ntpasswd/bootd...
  • AlexTheBeast
    Other sites suggest the steps as I have detailed them above as well.

    Here's something similiar on annoyances.org:
    http://www.annoyances.org/exec/show/article04-103

    Here's another one:
    http://www.kellys-korner-xp.com/win_xp_password...
  • mikeyg
    Well, I worked it out. Thanks for your help.

    The cd from eunet.no allowed me to see that it was not a password problems as all the passwords were null.

    The problem is that XP always logs in to my account (my name). After working the recipe, it was trying to log into the administrator account. I was able to type in my name and gain access. Then I used you recipe with the correct account and away we went.

    Thanks for your help.

    Michael
  • Petrieman
    Thanks for the recipe to bypass the logon screen. It works!
  • Anonymous
    I think I followed the instructions perfectly, but as another user posted I can not log on. Oh boy... it's my friend's new PC and now he can't use it. Big help I am!

    I get a Logon Message: The system could not log you on. Make sure your User name and domain are correct, they type your password again.

    In the background is Log On To Windows screen with User name:

    Administrator

    and Password: .....

    Anything I try fails.

    I see another post about recover discs but it's way beyond me. Guess this one's going to cost me!

    Thanks for any ideas!!
  • Anonymous
    P.S.

    Also when I try to log on leaving the password blank I get the message:

    Unable to log you on because of an account restriction.
  • Anonymous
    P.S.

    Sorry for all these posts... which I could just edit the first.

    Anyway, I played till I found how to get in. I replace the User name: Administrator with the actual user name; leave the Password blank; click ok and I'm in. Just much more work than before I started this. Haha.

    I thought I'd go through the instructions again but in step 11 a dialog box for the user name doesn't pop up as it did the first time through. I thought I'd try changing that. How do I get it back?

    Thanks, Peter
  • Anonymous
    P.S.

    What a clutz. I seem to have started my own little forum here... posting to myself!

    Anyway, it's all working fine now and thanks for the instructions.

    Where I went wrong was when the User/Password dialog box came up I left the user=Administrator. I should have changed it to the actual user name.

    Maybe this will help someone else... or maybe someone should just delete all these posts. Either way.

    Thanks again.. it's working great.
  • Anonymous
    anyone know how to auto logon in a domain situation.... i have a logon script that automatically locks my pc... but i need some programs running and the user to be logged on!!
  • LUIF
    Open regedit
    Localmachine/Microsoft/windowsNT/currentversion/winlogon

    Change autoadminlogon to 1
    Add 'DefaultPassword' and your value
    Chech the defaultvalues of DomainName and UserName

    Restart the Machine.
    This should work.

    Watch out when you break the routine of autologon, values may dissapear.

    Succes
  • wolong
    I ran into a problem with this procedure. On restarting, I was prompted to log on as "administrator", but when I tried I was unable due to an account restriction. I thought I was in real TROUBLE, but discovered that I could log on to my User account. Or I could logon safe mode. I then reversed the procedure and when I restarted, my computer came on with the automatic logon that I was originally trying to setup.
  • Anonymous
    "System could not log you on, make sure user name and domain name
    are..." error at autologon

    initialy the problem appeared after a TweakUI autologon option activation

    ms error ref at http://support.microsoft.com/kb/300433/EN-US/
    did no help, changing the regs did not produce results.

    the problem was overcome by deleting the initial user and creating a new account. by no means an elegant solution unless your'e really really fond of the defaut xp settings, and take painstaking care to transfer as much of the user-specific setting of your account as possible
  • lokesh
    thanku

    one problem how to shutdown the networksystem by command operation when i am trying t shutdown the network system by using the command *shutdown -m \\username or ip
blog comments powered by Disqus