• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 435
  • Last Modified:

AutoAdminLogon info removed after XP restarts

The first time XP restarts after the unattended install, the AutoAdminLogon=1 value in registry gets set to 0, and DefaultPassword also gets removed.

Under NT 4, after our automated install of NT, we run a script that installs all our common applications.
Under Win XP I'm trying to do the same thing, but here's what happens:
In Unattend.txt, under the [GUIRUNONCE] I call my script (stage.exe) - it launches fine, and since I have 3 steps in it, I have it log off, reboot and call itself again with a parameter of 2 (for step 2) via the runonce key.

Here's the crux of the matter.  Before the script logs off and reboots, I set the AutoAdminLogon to 1 and put the settings in for Administrator to log on.  However, it seems that after XP runs the script called by GuiRunOnce, it sets the AutoAdminLogon back to 0 !!!!!  Thus, to carry on my script, I have to manually log in - this only happens after the first step (From XP's viewpoint, after it runs the script it calls from GuiRunOnce, 'cause it doesn't know about the multiple steps).

Thus my questions - do you know how to remove this 'feature'?  Is there perhaps a 'shutdown' script that is run after the XP setup which is removing these settings?
Any advice would really help

Thanks
0
lz7y4l
Asked:
lz7y4l
  • 3
  • 2
1 Solution
 
schristie11Commented:
Have you reviewed the documentation and option for a Sysprep install and how they may relate to your issue here?

Just a suggestion. I'm pretty new at Unattended and deployment-type installs.
0
 
R_OCONNORCommented:
I have exactly the same problem but no resolution.
The sysprep option is not viable because I am working with different types of machines with various hardware.
0
 
lz7y4lAuthor Commented:
I actually found the solution years ago - here's why it was rebooting...
A new feature with XP's uninstalls is a line in the unattend.txt called     AutoLogonCount.

In our case we set     AutoLogonCount=4, and then after XP's automated install it will set autoadminlogon to 1 in the registry for the next 4 reboots.  What was causing my problem was that this AutoLogonCount was set to 0 or 1 (I can't remember), so after the 1st reboot it would set the Autoadminlogon in the registry to 1.  THus, the solution is to set this number to the number of reboots you require.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
R_OCONNORCommented:
I have experimented with the AutoLogonCount and it does work, however...
1) I need to AutoLogon as a Domain User.
2) On the 2nd reboot it needs to continue running a script (obviously the runonce only works once)
3) Both registry changes and copy commands do not seem to work in the runonce batch file but they work fine when the batch file is ran any other time.... strange.
Any ideas?
0
 
lz7y4lAuthor Commented:
We call a script from the runonce and that script takes care of the rest...
Eg. Runonce calls  stage.bat - at the end of step 1 in stage.bat, it goes to a subroutine that calls itself again with a parameter of 2 (ie. it puts in the runonce of the registry "stage.bat 2" and it the subroutine sets the autologon.
Next, after the reboot it autologs on, calls Stage.bat and it starts step 2.  When step 2 is complete, the subroutine is called and it sets the autologon again and puts in the runonce "stage.bat 3", etc. until you're done
0
 
R_OCONNORCommented:
Thanks for the input.
I have finally resolved this by using cmdlines.txt
I was able to change the registry from within cmdlines.txt and it has worked out well. :-)
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.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now