That command should work, as long as it is run immediately before the name of
the admin account is changed.

This is what I do:

In _meta
--
bottom="joindomain.bat" 
--

In joindomain.bat
--
::(remember, these run in reverse order)

:: Join the computer to the domain with the current computer name and reboot
:: Which should be assigned during setup by site/hardware.csv and
site/config.pl
todo.pl "netdom join %COMPUTERNAME% /domain:pyramidbrew /userD:domainadmin
/passwordD:secret" .reboot

:: Set the system to logon as domain named local admin
todo.pl  "autolog.pl --logon=1 --user=localadmin --password=secret"
--

In other words I tell the system that the next time it reboots to autologon
with "localadmin" and "secret". And then I join it to the domain. This works
for me because my domain policy changes the name of the local admin account
as soon as the computer is joined to the domain.

I run this in "bottom" because once the computer is joined to the domain it
doesn't autologon perfectly, you have to press CTRL+ALT+DEL (but it will
automatically logon using the username/password specified in joindomain.bat)

--
Perfection is just a word I use occasionally with mustard.

Atom Powers
Systems Administrator
Pyramid Breweries Inc.
206.682.8322 x251

-----Original Message-----
From: Brad Erdman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 07, 2004 12:21 PM
To: Atom Powers; Mario Gzuk; [EMAIL PROTECTED]
Subject: RE: [Unattended] rename administrator account

Hi,

I tried this but it still always seems to try to use the Administrator
account.  Here is an excerpt from my base.bat:

:: Disable "System Restore" during install.
todo.pl "autolog.pl --logon=1 --user=localadmin" "srconfig.pl --disable"

Is my syntax wrong?  I don't mind changing install.pl, but I don't know where
to change it.

Brad

> -----Original Message-----
> From: Atom Powers [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 07, 2004 1:47 PM
> To: Brad Erdman; Mario Gzuk; [EMAIL PROTECTED]
> Subject: RE: [Unattended] rename administrator account
> 
> 
> "--logon=0" mean don't autologon; try "--logon=1"
> Also, instead of modifying the install.pl; add a line to your install 
> batch
> (base.bat?) like this:
> 
> todo.pl "autolog.pl --logon=1 --user=localadmin" .reboot
> 
> 
> --
> Perfection is just a word I use occasionally with mustard.
> 
> Atom Powers
> Systems Administrator
> Pyramid Breweries Inc.
> 206.682.8322 x251
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Brad 
> Erdman
> Sent: Tuesday, September 07, 2004 10:33 AM
> To: 'Mario Gzuk'; [EMAIL PROTECTED]
> Subject: RE: [Unattended] rename administrator account
> 
> Hi,
> 
> This is what I need too.  I tried to edit install.pl to use this but 
> it did not work.  I changed 'autolog.pl --logon=0' to 'autolog.pl 
> --logon=0 --user=ourlocaladmin'.
> 
> Where do I specify this option?
> 
> TIA
> Brad
> 
> > -----Original Message-----
> > From: Mario Gzuk [mailto:[EMAIL PROTECTED]
> > Sent: Monday, September 06, 2004 5:00 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [Unattended] rename administrator account
> >
> > Is it enough to use:
> > autolog.pl --user=nobodyknowsme
> >
> >
> >
> > Am Mo, den 06.09.2004 schrieb Mario Gzuk um 9:40:
> > > Here is some vbs scribt to rename the local Administrator account:
> > >
> > > OldName = "Administrator"
> > > NewName = "nobodyknowsme"
> > > ContainerName = "."
> > > Set Container = GetObject("WinNT://" & ContainerName) Set User = 
> > > GetObject("WinNT://" & ContainerName & "/" & OldName
> > > &",user")
> > > Set NewUser = Container.MoveHere(User.ADsPath, NewName) Set User = 
> > > Nothing
> > >
> > > The question is how to handle it, with the renaming is the auto 
> > > login not working. Is there anybody who knows the registry key of 
> > > the Account name "Administrator" for auto login?
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java 
> > Enterprise J2EE developer tools!
> > Get your free copy of BEA WebLogic Workshop 8.1 today.
> > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> > _______________________________________________
> > unattended-info mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/unattended-info
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java 
> Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> _______________________________________________
> unattended-info mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/unattended-info



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
_______________________________________________
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to