Auto Logon (XP) from Computer Startup Script

I am trying to get computers to autologon to an account set via a computer startup script in group policy.

The script sets the AutoAdminLogon registry entries set below:
SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon\AutoAdminLogon
SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon\DefaultDomainName
SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon\DefaultUserName
SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon\DefaultPassword

The script runs correctly and sets the registry entries for autologon, however, windows must be reading the autologon info from the registry before the script runs as it only takes effect next reboot.

I have enabled "Always wait for the network at computer startup and logon" in the group policy as well as enabling "Run logon scripts synchronously" and disabling "Run startup scripts asynchronously" (which I think is disabled by default anyways)

The only thing I can think of is to check the registry entries before setting them and reboot if needed.

Was just hoping for a better way without rebooting.
DFPITCAsked:
Who is Participating?
 
B HCommented:
the group policy doesn't get read until the machine considers itself to be started, past the autoadminlogon
0
 
cjcsoftCommented:
on XP, click on Start -> run
rundll32 netplwiz.dll,UsersRunDll

in the popup windows,  you can set the auto login account.
0
 
DFPITCAuthor Commented:
My issue is not actually setting the auto login account, its getting windows to auto login immediately after it has been set via the computer startup script.
0
 
johnb6767Commented:
Description of the Windows XP Professional Fast Logon Optimization feature
http://support.microsoft.com/kb/305293

The above would make sense if it works from the reboot going forward (first reboot after an image, and GPO is applied). Possibly because you would be Asynchronous until your GPO is enabled to turn off the FLO, and start going synchronous.

Maybe set it in your image?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.