TechSpot

Problem with XP auto login: DefaultUserName does not change

By ravisunny2
Feb 23, 2011
Post New Reply
  1. I tried the following, to create a user and allow auto logon (in Win XP SP3).

    The user is created. All three net commands returned :The command completed successfully.

    But the DefaultUserName is not changed.

    Any suggestions / corrections ?

    Thanks.

    Code:
    net user "My_User_Name" "" /add
    net localgroup Administrators "My_User_Name" /add
    net accounts /maxpwage:unlimited
    REGEDIT /S autologon.reg
    EXIT
    Code:
    Windows Registry Editor Version 5.1 
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
    "DefaultUserName"="My_User_Name"
    "DefaultPassword"=""
    "AutoAdminLogon"="1"
    BTW, I did not use nLite. I integrated XP SP3, and used winnt.sif for the unattended install.

    Also, I ran the above cmd file after the unattended install.
     
  2. ucould2

    ucould2 TS Guru Posts: 271

    Not that I could pass as knowing anything too much, of quality, but, can you have two Admin-logon as you cannot save two .jpg files sharing the same filename ?
     
  3. hlanda

    hlanda TS Rookie

    look at Logonexpert autologon tool, it keeps your credentials AES 256bit encrypted instead of keeping it in plain text in registry
     
  4. ravisunny2

    ravisunny2 TS Ambassador Topic Starter Posts: 1,980   +11

    Oops!

    I clean forgot about this post.

    I have a solution: (use with due care)


    create_user.cmd
    ---------------------------

    net user "This is my name" "" /add
    net localgroup Administrators "This is my name" /add
    net accounts /maxpwage:unlimited
    REG IMPORT autologin.REG
    exit

    -----------------------------------------------------------------------------
    autologin.REG
    ----------------------

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
    "DefaultUserName"="This is my name"
    "DefaultPassword"=""
    "AutoAdminLogon"="0"
    "ForceAutoLogon"="1"
    -----------------------------------------------------------------------------
     
  5. LookinAround

    LookinAround Ex Tech Spotter Posts: 6,491   +183

    Hi ravisunny2 :)
    Another easy solution is TweakUI (but note TweakUI will only work for XP. It will install itself in C:\Windows\System32).

    TweakUI also provides for other easy changes to the XP user interface

    [​IMG]
     
  6. ravisunny2

    ravisunny2 TS Ambassador Topic Starter Posts: 1,980   +11

    Hi, Lookin :)

    I do use TweakUI, normally.

    My question had been with reference to an Unattended Installation.

    I am developing a custom UI without using nLite etc.

    It is almost done.

    I hope to post it in the Guides & Tutorials (if Julio allows).
     
  7. LookinAround

    LookinAround Ex Tech Spotter Posts: 6,491   +183

    Ooops! I missed the fact it was for an Unattended Install :blush:

    Thanks for your Autologon tip for that case :)
     
  8. ravisunny2

    ravisunny2 TS Ambassador Topic Starter Posts: 1,980   +11

    You are welcome, mate. :)
     

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...