net user add localuser
This at least automates part of my default profile creation that I go through after installation, as per
http://support.microsoft.com/default.aspx?kbid=319974
http://support.microsoft.com/default.aspx?kbid=305709
Do other people do this?
Cheers, Greg.
Gerry Put wrote:
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
-- - - ---- ----- Gregory Orange Systems Administrator Metocean Engineers Pty Ltd 31 Bishop Street JOLIMONT WA 6014 AUSTRALIA http://www.metoceanengineers.com Phone: +61 8 9387 7955 Fax: +61 8 9387 6686 E-Mail: [EMAIL PROTECTED]
------------------------------------------------------- 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
