This is how I do it. I come from supporting Novell servers and I needed a way to nest groups and various permissions. It's not pretty, but it works. This could be a pain if you are dealing with lots of users.
[global] logon script = %U.bat (user's name).bat - @ECHO OFF SET USERNAME=User SET STAFF=YES SET ADMIN=NO SET LOCALPR=NO @CALL \\Server\netlogon\net-log.bat net-log.bat - @ECHO OFF REM SET USERNAME=Name REM SET STAFF=YES REM SET ADMIN=NO REM SET LOCALPR=NO ECHO Welcome %USERNAME%. NET USE * /DEL /YES NET TIME \\Server /SET /YES ECHO Are you Admin? IF %ADMIN% == YES GOTO Admin GOTO NotAdmin :Admin NET USE F: \\Server\netlogon :NotAdmin ECHO Mapping home directory NET USE G: \\Server\Public NET USE H: \\Server\Home NET USE K: \\Server\Prgs NET USE S: \\Server\CDROM NET USE Z: \\Server\ZIP :Printers ECHO Mapping network printers IF %LOCALPR% == YES GOTO NotLocal NET USE LPT2: \\Server\HP990 GOTO End :NotLocal NET USE LPT1: \\Server\HP990 :End I hope this helps. Paul Espinosa ([EMAIL PROTECTED]) wrote*: > >All, > >As some of have no doubt found out, scripting is subtly different on 95/98 >machines and NT machines. I have a logon script called by: > > logon script = xxxx\main.bat %G %U > >that works great for NT boxen. However it does absolutely nothing, no >execution of main.bat at all for a W98 client. If I remove the parameters >so it is: > > logon script = xxxx\main.bat > >it executes on the W98 box, obviously not correctly for any commands >requiring the parameters. > >What this is used for is a generic logon script for everyone, modified >with special mounts etc. by group and user if defined. > >Works great with NT. Not so good with W98 > >My questions is, does anyone know how to pass parameters for a logon >script for W95/98 box. > >Thanks, > > > -- Bob Crandell Assured Computing When you need to be sure. Cell 541-914-3985 FAX 240-371-7237 [EMAIL PROTECTED] www.assuredcomp.com Eugene, Or. 97402 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
