Hello All
I add one or more users with the help of the base.bat script. In my company
environment this look likes this:
<-- start of addition to base.bat -->
:: Reboot into user account 'User'
todo.pl .reboot
todo.pl "autolog.pl --logon=1 --user=user --password=password"
:: Create user 'User'
todo.pl ".ignore-err 255 %Z%\scripts\%WINLANG%\createusers.bat"
< -- end of addition to base.bat -- >
In my case, I add these lines before;
:: Set Automatic Updates to download and update automatically (SP2 behavior)
todo.pl "auconfig.pl --day 0 --time 3 --wait 10 4"
Script createusers.bat contains the following;
< -- start of script -- >
@ECHO OFF
ECHO.
ECHO Add Local Users for My PC Environtment - ENU
ECHO ==============================================================
ECHO.
ECHO Add a New User 'user'
NET USER user password /ADD /FULLNAME:"Normal User" /COMMENT:"Normal User of
this Computer" /EXPIRES:NEVER
NET LOCALGROUP Administrators user /ADD
NET ACCOUNTS /MAXPWAGE:UNLIMITED
ECHO Done
ECHO.
< -- end of script -- >
I need a separate script for every %WINLANG% used in my environment.
Please note that all scripts run after this addition will be run as the user
user. This will of course mean that this user must be a member of the
group Administrators.
:-) Sture
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul
Lewis
Sent: den 23 november 2007 12:12
To: unattended-info@lists.sourceforge.net
Subject: [Unattended] Unattended doesn't ask for users to add to
LocalAdministrators
Ive noticed that Unattended doesnt ask for a list of users to add to the
Local Administrators group. Previously, I havent need to use this option,
but now it would be useful.
Ive found a few lines in install.pl (attached) which seem to suggest it
*should* be asking:
$u->{'_meta'}->{'local_admins'} =
['Accounts added to local Administrators group'];
$u->{'_meta'}->{'local_admins'} =
sub {
my $dom = $u->{'Identification'}->{'JoinDomain'};
defined $dom
or return undef;
print "Enter users to add to local Administrators group.\n";
return simple_q
("Type 0 or more usernames, separated by spaces:\n");
};
Does anyone know why it isnt, or how to fix it?
Cheers,
Paul
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
unattended-info mailing list
unattended-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-info