Jai Lamerton
2007-Aug-28 06:26 UTC
[Samba] Problem with netlogon\logon.bat not mapping all drives
Hi all, I was wondering if anyone could help me, I have searched for some reason but cannot find any. After migrating from a previous samba-3.0.10 (I think) PDC server to a newer samba-3.0.23c server on Centos5, I have the strange problem that my XP clients no longer map all the drives listed in the logon.bat during logon, however if I run logon.bat manually after I'm logged in, all drives are mapped fine. My logon.bat file: @echo off NET TIME %LOGONSERVER% /SET /YES NET USE * /DEL /YES NET USE H: %LOGONSERVER%\%USERNAME% NET USE I: %LOGONSERVER%\drivers NET USE P: %LOGONSERVER%\public NET USE S: %LOGONSERVER%\software The only drive that sometimes gets mapped at login is S: the last one in the list. My suspicion is that samba is not responding with the shares fast enough. However adding a 15 second delay to the top of logon.bat does not seem to do the trick. Regards, Jai
Helmut Hullen
2007-Aug-28 06:57 UTC
[Samba] Problem with netlogon\logon.bat not mapping all drives
Hallo, Jai, Du (jai.lamerton) meintest am 28.08.07:> My logon.bat file:> @echo off> NET TIME %LOGONSERVER% /SET /YES> NET USE * /DEL /YES> NET USE H: %LOGONSERVER%\%USERNAME%> NET USE I: %LOGONSERVER%\drivers> NET USE P: %LOGONSERVER%\public> NET USE S: %LOGONSERVER%\software> The only drive that sometimes gets mapped at login is S: the last one > in the list.What changes if you don't delete existent shares? Perhaps you should add "/persistent:no" after mounting the shares - it's not the problem you described. Viele Gruesse! Helmut
John Drescher
2007-Aug-28 07:26 UTC
Fwd: [Samba] Problem with netlogon\logon.bat not mapping all drives
---------- Forwarded message ---------- From: John Drescher <drescherjm@gmail.com> Date: Aug 28, 2007 3:26 AM Subject: Re: [Samba] Problem with netlogon\logon.bat not mapping all drives To: Jai Lamerton <jai.lamerton@sial.com> On 8/28/07, Jai Lamerton <jai.lamerton@sial.com> wrote:> Hi all, > > > > I was wondering if anyone could help me, I have searched for some reason but > cannot find any. > > > > After migrating from a previous samba-3.0.10 (I think) PDC server to a newer > samba-3.0.23c server on Centos5, I have the strange problem that my XP > clients no longer map all the drives listed in the logon.bat during logon, > however if I run logon.bat manually after I'm logged in, all drives are > mapped fine. > > > > My logon.bat file: > > > > @echo off > > NET TIME %LOGONSERVER% /SET /YES > > NET USE * /DEL /YES > > NET USE H: %LOGONSERVER%\%USERNAME% > > NET USE I: %LOGONSERVER%\drivers > > NET USE P: %LOGONSERVER%\public > > NET USE S: %LOGONSERVER%\software > > > > The only drive that sometimes gets mapped at login is S: the last one in the > list. >I have seen this with a similar script. What I have seen is that the NET USE * /DEL /YES finishes but does not always fully execute for all drives but is waiting and running in the background. Then the drive mapping actually succeeds and sometime after that (even a minute or two later) the delete actually happens. If you can I think it is best to avoid the delete. John -- John M. Drescher
Mogens Kjaer
2007-Aug-28 07:43 UTC
[Samba] Problem with netlogon\logon.bat not mapping all drives
Jai Lamerton wrote:> After migrating from a previous samba-3.0.10 (I think) PDC server to a newer > samba-3.0.23c server on Centos5, I have the strange problem that my XP > clients no longer map all the drives listed in the logon.bat during logon, > however if I run logon.bat manually after I'm logged in, all drives are > mapped fine. >Does it give any error messages when the logon script is executed? You can add a PAUSE command at the end and open the window on the Windows machine to check. Mogens -- Mogens Kjaer, Carlsberg A/S, Computer Department Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark Phone: +45 33 27 53 25, Fax: +45 33 27 47 08 Email: mk@crc.dk Homepage: http://www.crc.dk
Helmut Hullen
2007-Aug-28 12:47 UTC
Fwd: [Samba] Problem with netlogon\logon.bat not mapping all drives
Hallo, John, Du (drescherjm) meintest am 28.08.07:>> My logon.bat file:>> @echo off >> >> NET TIME %LOGONSERVER% /SET /YES >> >> NET USE * /DEL /YES[...]> I have seen this with a similar script. What I have seen is that the> NET USE * /DEL /YES> finishes but does not always fully execute for all drives but is > waiting and running in the background. Then the drive mapping > actually succeeds and sometime after that (even a minute or two > later) the delete actually happens. If you can I think it is best to > avoid the delete.Or he writes start /w NET USE * /DEL /YES rem waits until succeeded Maybe that cures a similar problem in some of my scripts. Viele Gruesse! Helmut
John Drescher
2007-Aug-28 13:15 UTC
Fwd: [Samba] Problem with netlogon\logon.bat not mapping all drives
On 28 Aug 2007 14:09:00 +0200, Helmut Hullen <Hullen@t-online.de> wrote:> Hallo, John, > > Du (drescherjm) meintest am 28.08.07: > > >> My logon.bat file: > > >> @echo off > >> > >> NET TIME %LOGONSERVER% /SET /YES > >> > >> NET USE * /DEL /YES > > [...] > > > I have seen this with a similar script. What I have seen is that the > > > NET USE * /DEL /YES > > > finishes but does not always fully execute for all drives but is > > waiting and running in the background. Then the drive mapping > > actually succeeds and sometime after that (even a minute or two > > later) the delete actually happens. If you can I think it is best to > > avoid the delete. > > Or he writes > > start /w NET USE * /DEL /YES > rem waits until succeeded >Thank You. I will check into that as my users are not very happy the 1 out of 100 times this fails... John
Jai Lamerton
2007-Aug-31 02:00 UTC
Fwd: [Samba] Problem with netlogon\logon.bat not mapping alldrives
Unfortunately no more drives magically appear after 2 - 3 minutes. The only drives that get mapped sometimes (1 out of the three) stays the only drive mapped. Also the script seems to complete its course in a reasonable time. However see my previous post with script output, there seems to be some problems. -----Original Message----- From: samba-bounces+jai.lamerton=sial.com@lists.samba.org [mailto:samba-bounces+jai.lamerton=sial.com@lists.samba.org] On Behalf Of Helmut Hullen Sent: Tuesday, 28 August 2007 10:09 PM To: samba@lists.samba.org Subject: Re: Fwd: [Samba] Problem with netlogon\logon.bat not mapping alldrives Hallo, John, Du (drescherjm) meintest am 28.08.07:>> My logon.bat file:>> @echo off >> >> NET TIME %LOGONSERVER% /SET /YES >> >> NET USE * /DEL /YES[...]> I have seen this with a similar script. What I have seen is that the> NET USE * /DEL /YES> finishes but does not always fully execute for all drives but is > waiting and running in the background. Then the drive mapping > actually succeeds and sometime after that (even a minute or two > later) the delete actually happens. If you can I think it is best to > avoid the delete.Or he writes start /w NET USE * /DEL /YES rem waits until succeeded Maybe that cures a similar problem in some of my scripts. Viele Gruesse! Helmut -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba