RE: [Unattended] Requesting mapdrive.pl from Scott Card

2003-07-05 Thread kevin
If it would help, I can post the code - I am not sure of the best way to
post vb source code to the list though, I am not sure that attachments are
the best way to go.

Also the code is a little rough - I am not a programmer by trade.

Let me know

Regards

Kevin

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Scott
Card
Sent: 17 April 2003 15:14
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [Unattended] Requesting mapdrive.pl from Scott Card


Hmmm...  I think I like this.  I hope to have some time to explore your
ideas a little further.  I really like the logoff script idea for
building and executing a todo list.

Thanks,
Scott

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, April 16, 2003 2:14 PM
To: [EMAIL PROTECTED]
Subject: RE: [Unattended] Requesting mapdrive.pl from Scott Card


Scott,

I was really taking thing a step further on than the approach that you
outlined in you earlier post, because a couple of the applications that
we use need a live domain account all of my machines are built with an
extra local admin account that is a domain user account (reading that
myself it may be a bit unclear - what I mean is that I have a domain
account, with minimal rights, that is made a member of each machines
local administrator group at build time)

This account - that I have called setmeup for want of a better name -
has the Z: drive set as its home drive.  After the initial build I
switch the to this account to auto logon until I have finished adding
applications (I have butchered the script that sets the auto logon
account and removes it so that I can avoid passing parameters.

The other advantage of this is that I am able to script the installation
of program installation -after- the initial builds, I have a small VB
exe file that sets up the  todo list from a central database, it is run
as a logoff script for the machine from group policy.  It is also set to
check if an install is already in progress,  wait until any previous
installs have completed before running.

So - in summary - my build process goes like this

1) Standard unattended install (still version 1 in fact) installs
windows, IE6, Hot fixes
2) Move machine into the correct OU (scripted, happens automatically
based on machine name)
3) Next Reboot (usually the final one of the build picks this up) the
shutdown script sets up the applications specific to the OU - Sets
autologon to me special 'setmeup' account - builds the todo list and
sets todo.pl to run on start-up
4) Machine restarts with 'setmeup' account, installs applications that
are out standing in the usual manner then clears the auto logon 
reboots - job done

I appreciate that my writing style is less than perfect (now - be nice)
so if anything needs a bit more clarification then ask  I will try

Regards

Kevin
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Scott
Card
Sent: 16 April 2003 14:57
To: [EMAIL PROTECTED]
Subject: RE: [Unattended] Requesting mapdrive.pl from Scott Card


... By setting the home drive for which account?  The local
administrator account that is not a member of a domain?  Elaborate a
little if you could.

Thanks,
Scott

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, April 15, 2003 3:49 PM
To: [EMAIL PROTECTED]
Subject: RE: [Unattended] Requesting mapdrive.pl from Scott Card



Sylvain,

The text from that file is attached below, but I would note that I have
been successfully getting around this problem simply by setting the home
drive for the account to Z: and pointing it at the install share.

Also, I think that having a blank password can sometimes cause more
problems than it causes

Hope it helps

Kevin

_ Start mapdrive.pl (do not include this
line)_ # used to map a drive with authentication
upon restart and #  run todo.pl --go

use strict;

my $mapdrvcmd = 'net use z: aa1pri\\install installpasswd
/USER:install /persistent:no'; my $gocmd = 'start cmd /c
c:\\perl\\bin\\perl.exe z:\\bin\\todo.pl --go'; my $golog =
c:\\netinst\\logs\\golog.txt;

open GOLOG, $golog
or die Unable to open $golog for writing: $^E;
my $i;
my $not_mapped=1;

# Try 5 times at 2 second intervals
for ($i=0, $i6, $i++){
if (! ($not_mapped = mapdrive() ) ){
last;
}
sleep 2;
}

if ($not_mapped){
print GOLOG Could not map drive, giving up., \n;
close GOLOG;
exit 1;
} else {
print GOLOG Map drive successful\n;
print GOLOG Running todo.pl\n;
system $gocmd;
}

print done.\n;
close GOLOG
or die Unable to close $golog: $^E;

sub mapdrive {
print Running $mapdrvcmd...;
if (0 != (system $mapdrvcmd) ){
print GOLOG $mapdrvcmd failed: , ($? ? $? : $^E), \n;
print $mapdrvcmd failed: , ($? ? $? : $^E);
return 1;
}
return 0

RE : [Unattended] Requesting mapdrive.pl from Scott Card

2003-07-05 Thread Sylvain Faivre
It works now =)
By the way you don't need to worry for me, I don't usually setup blank
passwords... It was just something I tried to get the automatic network
drive mapping to work. I don't know why it kept asking me for the
password... In fact I'm not sure how it is supposed to work, because the
original line in install.pl says :
net use z: $ENV{'INSTALL'} /persistent:yes
But that doesn't work for me... Well it works, but the connection is not
persistent. Anyways, it works now (thanks to Scott's patch) so I don't
really care.

Thanks a lot to Kevin for the quick answer, to Scott for the patch, and
of course to Patrick for the whole thing.

Sylvain.

-
Sylvain Faivre
EdifiXio - AIH Team
+33 1 56 90 51 24
www.edifixio.com

 -Message d'origine-
 De : [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Envoyé : mardi 15 avril 2003 22:49
 À : [EMAIL PROTECTED]
 Objet : RE: [Unattended] Requesting mapdrive.pl from Scott Card
 
 
 
 Sylvain,
 
 The text from that file is attached below, but I would note 
 that I have been successfully getting around this problem 
 simply by setting the home drive for the account to Z: and 
 pointing it at the install share.
 
 Also, I think that having a blank password can sometimes 
 cause more problems than it causes
 
 Hope it helps
 
 Kevin
 
 _ Start mapdrive.pl (do not include this 
 line)_
 # used to map a drive with authentication upon restart and
 #  run todo.pl --go
 
 use strict;
 
 my $mapdrvcmd = 'net use z: aa1pri\\install installpasswd 
 /USER:install /persistent:no';
 my $gocmd = 'start cmd /c c:\\perl\\bin\\perl.exe 
 z:\\bin\\todo.pl --go';
 my $golog = c:\\netinst\\logs\\golog.txt;
 
 open GOLOG, $golog
 or die Unable to open $golog for writing: $^E;
 my $i;
 my $not_mapped=1;
 
 # Try 5 times at 2 second intervals
 for ($i=0, $i6, $i++){
 if (! ($not_mapped = mapdrive() ) ){
 last;
 }
 sleep 2;
 }
 
 if ($not_mapped){
 print GOLOG Could not map drive, giving up., \n;
 close GOLOG;
 exit 1;
 } else {
 print GOLOG Map drive successful\n;
 print GOLOG Running todo.pl\n;
 system $gocmd;
 }
 
 print done.\n;
 close GOLOG
 or die Unable to close $golog: $^E;
 
 sub mapdrive {
 print Running $mapdrvcmd...;
 if (0 != (system $mapdrvcmd) ){
 print GOLOG $mapdrvcmd failed: , ($? ? $? : $^E), \n;
 print $mapdrvcmd failed: , ($? ? $? : $^E);
 return 1;
 }
 return 0;
 }
 
 __end mapdrive.pl (do not include 
 this line) ___
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf 
 Of Sylvain
 Faivre
 Sent: 15 April 2003 21:13
 To: [EMAIL PROTECTED]
 Subject: [Unattended] Requesting mapdrive.pl from Scott Card
 
 
 Hello,
 I've been trying to setup an unattended install for some time now and
 this system seems very good =)
 However, Windows won't logon automatically after each reboot, it keeps
 asking me for a password to access the network share. Even with a user
 who has a blank password, i have to press the ENTER key to close the
 messagebox.
 So I browsed through the mailing list archive and found an interesting
 post by Scott Card. It seems to be exactly what I'm trying to do, but
 the mapdrive.pl file that was attached to the message isn't 
 available
 on the archive. So I was wondering if anyone could send me that file ?
 The message was entitled RE: Questions - Username for app 
 installs and
 its date was 2003-03-10 13:04.
 Thanks in advance.
 
 -
 Sylvain Faivre
 EdifiXio - AIH Team
 +33 1 56 90 51 24
 www.edifixio.com
 



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


RE : [Unattended] Requesting mapdrive.pl from Scott Card

2003-07-05 Thread Sylvain Faivre
It works now =)
By the way you don't need to worry for me, I don't usually setup blank
passwords... It was just something I tried to get the automatic network
drive mapping to work. I don't know why it kept asking me for the
password... In fact I'm not sure how it is supposed to work, because the
original line in install.pl says :
net use z: $ENV{'INSTALL'} /persistent:yes
But that doesn't work for me... Well it works, but the connection is not
persistent. Anyways, it works now (thanks to Scott's patch) so I don't
really care.

Thanks a lot to Kevin for the quick answer, to Scott for the patch, and
of course to Patrick for the whole thing.

Sylvain.

-
Sylvain Faivre
EdifiXio - AIH Team
+33 1 56 90 51 24
www.edifixio.com

 -Message d'origine-
 De : [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Envoyé : mardi 15 avril 2003 22:49
 À : [EMAIL PROTECTED]
 Objet : RE: [Unattended] Requesting mapdrive.pl from Scott Card
 
 
 
 Sylvain,
 
 The text from that file is attached below, but I would note 
 that I have been successfully getting around this problem 
 simply by setting the home drive for the account to Z: and 
 pointing it at the install share.
 
 Also, I think that having a blank password can sometimes 
 cause more problems than it causes
 
 Hope it helps
 
 Kevin
 
 _ Start mapdrive.pl (do not include this 
 line)_
 # used to map a drive with authentication upon restart and
 #  run todo.pl --go
 
 use strict;
 
 my $mapdrvcmd = 'net use z: aa1pri\\install installpasswd 
 /USER:install /persistent:no';
 my $gocmd = 'start cmd /c c:\\perl\\bin\\perl.exe 
 z:\\bin\\todo.pl --go';
 my $golog = c:\\netinst\\logs\\golog.txt;
 
 open GOLOG, $golog
 or die Unable to open $golog for writing: $^E;
 my $i;
 my $not_mapped=1;
 
 # Try 5 times at 2 second intervals
 for ($i=0, $i6, $i++){
 if (! ($not_mapped = mapdrive() ) ){
 last;
 }
 sleep 2;
 }
 
 if ($not_mapped){
 print GOLOG Could not map drive, giving up., \n;
 close GOLOG;
 exit 1;
 } else {
 print GOLOG Map drive successful\n;
 print GOLOG Running todo.pl\n;
 system $gocmd;
 }
 
 print done.\n;
 close GOLOG
 or die Unable to close $golog: $^E;
 
 sub mapdrive {
 print Running $mapdrvcmd...;
 if (0 != (system $mapdrvcmd) ){
 print GOLOG $mapdrvcmd failed: , ($? ? $? : $^E), \n;
 print $mapdrvcmd failed: , ($? ? $? : $^E);
 return 1;
 }
 return 0;
 }
 
 __end mapdrive.pl (do not include 
 this line) ___
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf 
 Of Sylvain
 Faivre
 Sent: 15 April 2003 21:13
 To: [EMAIL PROTECTED]
 Subject: [Unattended] Requesting mapdrive.pl from Scott Card
 
 
 Hello,
 I've been trying to setup an unattended install for some time now and
 this system seems very good =)
 However, Windows won't logon automatically after each reboot, it keeps
 asking me for a password to access the network share. Even with a user
 who has a blank password, i have to press the ENTER key to close the
 messagebox.
 So I browsed through the mailing list archive and found an interesting
 post by Scott Card. It seems to be exactly what I'm trying to do, but
 the mapdrive.pl file that was attached to the message isn't 
 available
 on the archive. So I was wondering if anyone could send me that file ?
 The message was entitled RE: Questions - Username for app 
 installs and
 its date was 2003-03-10 13:04.
 Thanks in advance.
 
 -
 Sylvain Faivre
 EdifiXio - AIH Team
 +33 1 56 90 51 24
 www.edifixio.com