Jump to content

Problem with Auto Logon : DefaultUserName does not change


Recommended Posts

I tried what was suggested in the Unattended Intermediate Guide, to create a user and allow auto logon.

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

But the DefaultUserName is not changed.

Any suggestions / corrections ?

Thanks.

net user "My_User_Name" "" /add
net localgroup Administrators "My_User_Name" /add
net accounts /maxpwage:unlimited
REGEDIT /S autologon.reg
EXIT

Windows Registry Editor Version 5.1 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="My_User_Name"
"DefaultPassword"=""
"AutoAdminLogon"="1"

Link to comment
Share on other sites


I did not enable Fast User Switching.

Is it on by default ?

BTW, I used the above code after the unattended installation was complete.

Does that matter ?

Do I need to use cmdlines.txt ?

NB:

I did not use nLite.

I integrated XP SP3, and used a winnt.sif for the unattended install. The iso was created using CDImage.

Edited by ravisunny2
Link to comment
Share on other sites

  • 1 month later...

If you don't want to keep your password in plain text in registry (may be accessed by everyone even via network in domain environment) look at LogonExpert autologon tool. It keeps your credentials AES 256bit encrypted.

It also supports the command line\script control

I tried what was suggested in the Unattended Intermediate Guide, to create a user and allow auto logon.

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

But the DefaultUserName is not changed.

Any suggestions / corrections ?

Thanks.

net user "My_User_Name" "" /add
net localgroup Administrators "My_User_Name" /add
net accounts /maxpwage:unlimited
REGEDIT /S autologon.reg
EXIT

Windows Registry Editor Version 5.1 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="My_User_Name"
"DefaultPassword"=""
"AutoAdminLogon"="1"

Edited by hlanda
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...