Problem with XP auto login: DefaultUserName does not change

ravisunny2

Posts: 1,055   +11
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.
 
"AutoAdminLogon"="1"
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 ?
 
look at Logonexpert autologon tool, it keeps your credentials AES 256bit encrypted instead of keeping it in plain text in registry
 
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"
-----------------------------------------------------------------------------
 
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

 
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).
 
Back