Fizzle Sticks!

After I posted and before your response I found the perl code in install.pl 
that generates postinstall.bat

I cobbled in a call to my reg editing script right before the final reboot.

While what you are suggesting is a much cleaner solution, I had already hacked 
the perl code to autoset something that would eventually pull from the DB to 
autojoin to our domain, so since it is already hardcoded in somewhere, no since 
in keeping it generic. (I did this when I first started and didn't really 
understand unattended very well)

Thanks for the tip though. I'll have to make it a project to redo unattended 
and keep it lean, mean, and clean.

--
Chris Liles
System Analyst
Air2Web, Inc.
1230 Peachtree St. N.E.
12th Floor
Atlanta, GA 30309


-----Original Message-----
From: Ben Walton [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 17, 2006 2:23 PM
To: Chris Liles
Subject: Re: [Unattended] Very Last command run in an unattended install

You can add this snippet of code to config.pl to achieve what you're
after:

$u->{'_meta'}->{'autolog'} =
  sub {
    my $domain = $u->{'Identification'}->{'JoinDomain'};

    if (defined ($domain)) {
      return "autolog.pl --logon=0 --domain=$domain";
    } else {
      return "autolog.pl --logon=0";
    }
  };

If you've set the domain previously either in config.pl or unattend.txt
(or via db?), this will grab that value and have the script that changes
the autologon settings also set the default domain for you.  Generic
across multiple domains, if that's your style.

Hope that helps.
-Ben

On Fri, 2006-02-17 at 14:08 -0500, Chris Liles wrote:
> 
> I know this has been asked before, but I'm going to ask again.
> 
> Where is the very last script/command held that unattended runs right before 
> the final reboot (being the reboot that leaves you at a login window)??
> 
> I am adding a reg key that will automatically select the domain for login, 
> instead of the local machine.
> 
> When I do this, it breaks the auto-login as the unattended script(s) try to 
> login as the local admin, but after I make the reg change it is trying to 
> login to the domain :(
> 
> I just want to add a command to import the registry file as the absolutely 
> very last thing.
> 
> 
> Thanks
> 
> --
> Chris Liles
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
> _______________________________________________
> unattended-info mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/unattended-info
-- 
Ben Walton
Systems Programmer
Office of Planning & IT
Faculty of Arts & Science
University of Toronto
Cell: 416.407.5610
PGP Key Id: 8E89F6D2


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
unattended-info mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to