PC Review


Reply
Thread Tools Rate Thread

Re: Sysprep deletes autologon keys from registry

 
 
Michael Niehaus [MS]
Guest
Posts: n/a
 
      22nd Sep 2005
You should configure Sysprep.inf to tell it to configure this:

[GuiUnattended]
AdminPassword=local
AutoLogon="Yes"
AutoLogonCount=1

If you use an encrypted admin password in Sysprep.inf, Autologon isn't
possible. In this example, it will only auto-logon once; if you want more
than that, increase the AutoLogonCount.

How is your Sysprep.inf configured? When running Sysprep, was the local
admin password blank or the same as what's in Sysprep.inf?

-Michael Niehaus
Systems Design Engineer
(E-Mail Removed)
This posting is provided "AS IS" with no warranties, and confers no rights.

"Bjorn" <(E-Mail Removed)> wrote in message
news:60652B97-84AA-4BA8-93E1-(E-Mail Removed)...
>I run sysprep on Windows XP with SP2. I configure sysprep.inf to do the
> autologon stuff. I also set the registry to do autologon at:
>>>>"HKLM\SOFTWARE\Microsoft\Windows

> NT\CurrentVersion\WinLogon\AutoAdminLogon", "1", "REG_SZ"<<< and >>>
> "HKLM\SOFTWARE\Microsoft\Windows
> NT\CurrentVersion\WinLogon\DefaultPassword",
> "XXXX", "REG_SZ"<<<
> Here's the problem - Sysprep simply deletes these keys...
> Result: If a user reboots the machine, they'll be asked to authenticate.
>
> Background & requirements: I have a boot script forcing a desktop image
> installer to change the computer name according to internal naming
> standards
> and to set a new password for the local admin account.
> To make this happen in a "somewhat" secure manner, I want to have the
> machine loop autologon until they have changed computer name and password.
>
> Again the problem is: Sysprep deletes autologon keys from registry
> FYI - I have already tried implementing scripts to re-enter the keys above
> on the first boot after sysprep. Didn't do it...
> I've been thinking of implementing a startup script enforcing autologon by
> using local group policy, but couldn't figure out a scripted way to
> disable
> the startup script once the installer has changed the computer name and
> set a
> new password...



 
Reply With Quote
 
 
 
 
=?Utf-8?B?Qmpvcm4=?=
Guest
Posts: n/a
 
      23rd Sep 2005
Please read original post carefully before bothering...
The local admin password is the same as the one specified in sysprep.inf.
The password has complexity and is not encrypted.
AutoLogonCount is set to 1.
Will now change the AutoLogonCount to 10 or whatever. When desktop image
installers have completed the "first boot script", I'll have the script
delete the AutoLogonCount key and other keys involved in the entire AutoLogon
procedure.
This does not guarantee a fix for the scenario described in the oroginal
post, but I'll test carefully and then post findings here...
Thanks for participating!

"Michael Niehaus [MS]" wrote:

> You should configure Sysprep.inf to tell it to configure this:
>
> [GuiUnattended]
> AdminPassword=local
> AutoLogon="Yes"
> AutoLogonCount=1
>
> If you use an encrypted admin password in Sysprep.inf, Autologon isn't
> possible. In this example, it will only auto-logon once; if you want more
> than that, increase the AutoLogonCount.
>
> How is your Sysprep.inf configured? When running Sysprep, was the local
> admin password blank or the same as what's in Sysprep.inf?
>
> -Michael Niehaus
> Systems Design Engineer
> (E-Mail Removed)
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Bjorn" <(E-Mail Removed)> wrote in message
> news:60652B97-84AA-4BA8-93E1-(E-Mail Removed)...
> >I run sysprep on Windows XP with SP2. I configure sysprep.inf to do the
> > autologon stuff. I also set the registry to do autologon at:
> >>>>"HKLM\SOFTWARE\Microsoft\Windows

> > NT\CurrentVersion\WinLogon\AutoAdminLogon", "1", "REG_SZ"<<< and >>>
> > "HKLM\SOFTWARE\Microsoft\Windows
> > NT\CurrentVersion\WinLogon\DefaultPassword",
> > "XXXX", "REG_SZ"<<<
> > Here's the problem - Sysprep simply deletes these keys...
> > Result: If a user reboots the machine, they'll be asked to authenticate.
> >
> > Background & requirements: I have a boot script forcing a desktop image
> > installer to change the computer name according to internal naming
> > standards
> > and to set a new password for the local admin account.
> > To make this happen in a "somewhat" secure manner, I want to have the
> > machine loop autologon until they have changed computer name and password.
> >
> > Again the problem is: Sysprep deletes autologon keys from registry
> > FYI - I have already tried implementing scripts to re-enter the keys above
> > on the first boot after sysprep. Didn't do it...
> > I've been thinking of implementing a startup script enforcing autologon by
> > using local group policy, but couldn't figure out a scripted way to
> > disable
> > the startup script once the installer has changed the computer name and
> > set a
> > new password...

>
>
>

 
Reply With Quote
 
=?Utf-8?B?Qmpvcm4=?=
Guest
Posts: n/a
 
      27th Sep 2005
I changed AutoLogonCount to 10 and that did it.
Thanks a bunch!

"Michael Niehaus [MS]" wrote:

> You should configure Sysprep.inf to tell it to configure this:
>
> [GuiUnattended]
> AdminPassword=local
> AutoLogon="Yes"
> AutoLogonCount=1
>
> If you use an encrypted admin password in Sysprep.inf, Autologon isn't
> possible. In this example, it will only auto-logon once; if you want more
> than that, increase the AutoLogonCount.
>
> How is your Sysprep.inf configured? When running Sysprep, was the local
> admin password blank or the same as what's in Sysprep.inf?
>
> -Michael Niehaus
> Systems Design Engineer
> (E-Mail Removed)
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Bjorn" <(E-Mail Removed)> wrote in message
> news:60652B97-84AA-4BA8-93E1-(E-Mail Removed)...
> >I run sysprep on Windows XP with SP2. I configure sysprep.inf to do the
> > autologon stuff. I also set the registry to do autologon at:
> >>>>"HKLM\SOFTWARE\Microsoft\Windows

> > NT\CurrentVersion\WinLogon\AutoAdminLogon", "1", "REG_SZ"<<< and >>>
> > "HKLM\SOFTWARE\Microsoft\Windows
> > NT\CurrentVersion\WinLogon\DefaultPassword",
> > "XXXX", "REG_SZ"<<<
> > Here's the problem - Sysprep simply deletes these keys...
> > Result: If a user reboots the machine, they'll be asked to authenticate.
> >
> > Background & requirements: I have a boot script forcing a desktop image
> > installer to change the computer name according to internal naming
> > standards
> > and to set a new password for the local admin account.
> > To make this happen in a "somewhat" secure manner, I want to have the
> > machine loop autologon until they have changed computer name and password.
> >
> > Again the problem is: Sysprep deletes autologon keys from registry
> > FYI - I have already tried implementing scripts to re-enter the keys above
> > on the first boot after sysprep. Didn't do it...
> > I've been thinking of implementing a startup script enforcing autologon by
> > using local group policy, but couldn't figure out a scripted way to
> > disable
> > the startup script once the installer has changed the computer name and
> > set a
> > new password...

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sysprep deletes my IPX settings. Is my sysprep.ini file wrong? Jeff Windows XP Setup 0 4th Oct 2008 02:55 PM
Sysprep removes autologon =?Utf-8?B?U0VKT0Q=?= Microsoft Windows 2000 Deployment 1 29th Feb 2004 10:21 PM
Autologon and Sysprep PB Eric Windows XP Setup 1 19th Jan 2004 08:20 PM
Sysprep issue's with autologon Alex Suy Windows XP Setup 1 18th Nov 2003 12:39 AM
Autologon and Sysprep ??? serge calderara Microsoft Windows 2000 1 22nd Oct 2003 01:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:23 PM.