logon scripts

Luke Kenneth Casson Leighton lkcl at switchboard.net
Wed Nov 12 18:15:14 GMT 1997


On Wed, 12 Nov 1997, Seth Vidal wrote:

> I was playing with logon scripts today and I was wondering something.
> 
> I had my logon scripts defined as %G\%U.bat
> 
> to decrease administration I tried 
> logon script = global.bat %U %G
> trying to pass variables to the batch file.
> 
> why does this not work.
> 
> When I do it NO logon script runs under win95.
> 
> When I take off the  %U %G then the script runs.
> 
> is their anyway to pass these parameters to the script? 
> and if not why not?

i think that the latest versions of samba have macro substitutions 
carried out on the actual .bat file before it is downloaded to the client.

try putting NET TIME \\%L /SET /YES^M in the actual "global.bat" file, using
1.9.17p4. 

if that doesn't work, it will be a very simple matter to put a few lines 
of code in yourself, to do this substitution.  i believe that you will be 
able to find the location yourself by doing "grep lp_logon_script *.c 
*.h".

lukes




<a href="mailto:lkcl at switchboard.net"  > Luke Kenneth Casson Leighton  </a>
<a href="http://mailhost.cb1.com/~lkcl"> Samba Consultancy and Support </a>



More information about the samba mailing list