Question Locked

Sysprep autologin

0 helpful
10 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

We are currently using Ghost 8.3 and sysprep 2.0. In WIN XP Pro SP2 I am trying to make the system login into a default, non-administrator account after sysprep has run. I have tried using the GUIRunOnce to throw the reg file back in and also tried running a bat from the $OEM$ folder and apparently neither will work b/c sysprep is resetting these reg entries after these options are performed.

Any Ideas?

10 replies

by charliespencer

Did you log in as the default account before you created the Ghost? Maybe a pre-existing Documents and Settings folder for that account in the image will help.

I admit I'm just slinging out an idea with absolutely no practical experience to back it up.

by 3timestrouble

To answer your question: Yes.

It is really a matter of the registry. The info for auto login is kept under the following key:

HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

The problem is I want something automated added to the image after sysprep has run(b/c sysprep changes these keys back to defaults) to enable autologin permanently for a non-administrator account.

by jesus_c

or poosibly the most stupid thing you've heard but here it goes.If you download tweak ui you can set windows to log in to that user automatically.As i say it might be good for or just plain stupid.

by 3timestrouble

That looks like a great tool and I will have to keep it in mind for some of the other things I do, but the problem I am having is not necessarily modifying the registry. The problem is modifying it after sysprep has altered back to original configuration, and automating the process so I do not have to touch th PC.

by 18h52

Hi,
found your post and like to ask, if you got any solution? I'm having the same problem?
Thanks for your help.

by 3timestrouble

First you will need to set your Sysprep file to autoadminlogon 2 times.

Next I finally found a way to make a self deleting batch file sit in the startup of the admin user by having the batch remove the read-only attrib of the folder and then using these 2 lines as the last lines of the batch

shutdown -r

del /q /f c:\documents and settings\administrator\start menu\programs\start up\*.bat

i then wrote a section into the middle of the batch to delete the reg keys for the autologinadmin from the sysprep and add the ones for the account that I want to login.

let me know if you have any other questions and I will try to answer them.

by 18h52

Thanks for your reply and the explantion. After i wrote the question, i also found a solution. More or lesse the same way. Set up sysprep for Autologin 2 times. During the first login i kill the RegKey AutoLogonCount and change the AutoLogon-Keys (User, Passwort) to the parameters of the user i want to login (batch).

by bergmanc

My solution was that I added a cmdlines.txt to my sysprep, which executes just before the final reboot after sysprep runs. Cmdlines.txt calls a batch file where I set the autologin and a few other things such as Altiris agent installs and AV installation too.

-Corey

This discussion is closed to new replies.