didn't the script already ask for the local admins? so Why do you need this script for?

----- Original Message ----- From: "Michael Joyner" <[EMAIL PROTECTED]>
To: "Allan Stones" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Friday, April 08, 2005 2:34 AM
Subject: Re: [Unattended] Local Admins



net localgroup administrators /add "DOMAIN\USER"

in a script is just as effective.

Allan Stones wrote:
"To configure which domain accounts are added to the local
Administrators group, set the |local_admins| key to a
semicolon-separated list of user names. An empty list is allowed, but it
must be quoted. User names may be fully qualified (DOMAIN\user), or they
may be bare (user); in the latter case, the [Identification]/JoinDomain
value will be used as the domain."

As said above i have created some code to input the local admins you
wish to add to the machine. So if you have Bob, Mary and Sarah you would
enter the following for the question asked;

Bob;Mary;Sarah

and all 3 would now be local admins.

Below is the code to be added to config.pl

#####################################
# Setup any local admins on the box #
#####################################
$u->{"_meta"}->{"local_admins"}=
  sub {
    print "Enter any local admins you require\n";
    print "----------------------------------";
    return simple_q("?");
  }; Hope this helps someone :)




------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ unattended-info mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/unattended-info




------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ unattended-info mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to